Commit Graph
100 Commits
Author SHA1 Message Date
ChUrl de88d650d3 support abs paths 2020-12-14 18:02:06 +01:00
ChUrl 8ff6ffd637 some main program changes 2020-12-14 17:30:00 +01:00
ChUrl 4132551f0e updates 2020-12-14 17:29:50 +01:00
ChUrl 29def0a645 fix identifiermovement bug 2020-12-14 17:29:23 +01:00
ChUrl d0d0426345 fix typechecking bug where identifiers weren't used 2020-12-14 16:33:00 +01:00
ChUrl fc9cade682 status messages + better error messages 2020-12-14 16:06:37 +01:00
ChUrl 2ef7cefedc status messages + better error messages 2020-12-14 16:04:33 +01:00
ChUrl 1987e6532d update 2020-12-14 16:04:10 +01:00
ChUrl f2f10772b2 add line info to astnodes 2020-12-14 16:03:55 +01:00
ChUrl b9086e2bb2 add line info to astnodes 2020-12-14 16:03:41 +01:00
ChUrl 50cb660c4c update 2020-12-14 15:11:05 +01:00
ChUrl 1991255ee6 implement type checker 2020-12-14 15:05:54 +01:00
ChUrl 3ef2199910 exception 2020-12-14 15:05:32 +01:00
ChUrl af73c718af rename 2020-12-14 15:05:23 +01:00
ChUrl 88e88c035d add argument-type table 2020-12-14 15:05:15 +01:00
ChUrl bf6e2256d8 fix operator-precedence 2020-12-14 15:04:52 +01:00
ChUrl 63903f6955 rename 2020-12-14 15:04:32 +01:00
ChUrl be2d56f7b2 new exceptions 2020-12-14 15:04:23 +01:00
ChUrl ba624cf4a0 renamings 2020-12-13 15:03:28 +01:00
ChUrl 8e7292ea3e begin typechecker + rename 2020-12-13 15:02:08 +01:00
ChUrl ed99c71d44 renamings 2020-12-13 15:01:55 +01:00
ChUrl e56e1abc46 updates 2020-12-13 14:49:35 +01:00
ChUrl c84825e62b add empty typechecker 2020-12-13 14:49:24 +01:00
ChUrl b05c227e4f implement wrongtypeexception 2020-12-13 14:49:13 +01:00
ChUrl 1adfc5246b new test + testprograms 2020-12-13 14:49:02 +01:00
ChUrl 36241a2699 implement symboltable 2020-12-13 14:48:51 +01:00
ChUrl d949a7fa8b updates 2020-12-13 14:48:20 +01:00
ChUrl 2712318654 add preprocess to ast 2020-12-13 14:48:04 +01:00
ChUrl 4f3955cb41 fix test 2020-12-13 14:47:53 +01:00
ChUrl 8909ff0e63 renamings 2020-12-13 14:47:46 +01:00
ChUrl 9aafbb3095 implement operator precedence + test 2020-12-13 14:05:26 +01:00
ChUrl 290f1fe240 update tests 2020-12-12 17:35:33 +01:00
ChUrl 62706c538d fix grammar compacting bug 2020-12-12 17:35:23 +01:00
ChUrl b083702030 fix logging of nullable strings 2020-12-12 17:35:12 +01:00
ChUrl 0783531711 add function to remove junk 2020-12-12 17:34:48 +01:00
ChUrl 9d998d625d fix bug where rotations were missing 2020-12-12 17:34:30 +01:00
ChUrl 16315e288a start implementing expression balancer 2020-12-12 16:04:49 +01:00
ChUrl 8bdcd0f7d7 update grammar 2020-12-12 16:04:30 +01:00
ChUrl 1eac9e494a update grammar 2020-12-12 16:04:20 +01:00
ChUrl 98fcd9930c updates 2020-12-12 16:02:57 +01:00
ChUrl a14f15618d slight restructure 2020-12-12 16:02:23 +01:00
ChUrl f9dcebc82a remove dfa 2020-12-12 16:02:04 +01:00
ChUrl 232b631744 add grammar to main program + test program 2020-12-11 19:18:14 +01:00
ChUrl aad60a0a23 add main class 2020-12-11 19:17:59 +01:00
ChUrl d5cd6cbfd3 print syntaxfehler 2020-12-11 19:17:51 +01:00
ChUrl 0f749106eb add ast renaming 2020-12-11 18:34:19 +01:00
ChUrl 50a57387cc add test to try things out 2020-12-11 18:34:04 +01:00
ChUrl 374b994b29 add main class 2020-12-11 18:33:50 +01:00
ChUrl 4d411a3473 test + exception 2020-12-11 17:38:31 +01:00
ChUrl ca9ce5dd45 implement ast compactor v1 2020-12-11 17:38:23 +01:00
ChUrl 1c62dbdfa5 new test program 2020-12-11 17:38:11 +01:00
ChUrl e6723f4112 Actions enum 2020-12-11 17:37:55 +01:00
ChUrl 95709d3f59 update grammar with actions 2020-12-11 17:37:39 +01:00
ChUrl 88aeacad35 add size() 2020-12-11 17:29:28 +01:00
ChUrl f54dc717e7 update actions, add nullable 2020-12-11 17:29:18 +01:00
ChUrl 2277f6b165 getValue 2020-12-11 16:01:48 +01:00
ChUrl d06d535bcd refactor action parsing 2020-12-11 16:01:40 +01:00
ChUrl 8a310e6c41 grammar fix bug where rightside wasnt split for actions 2020-12-11 14:10:58 +01:00
ChUrl 6dc278d4d4 catch wrong actions 2020-12-11 14:00:28 +01:00
ChUrl c7b3e7806e distinguish between different rightsides for actions 2020-12-11 13:46:37 +01:00
ChUrl 79e9fb6094 make action syntax optional 2020-12-11 13:40:21 +01:00
ChUrl ec5e243e22 parser returns tree 2020-12-11 13:35:06 +01:00
ChUrl 5f88a56d53 hashcode 2020-12-11 13:34:47 +01:00
ChUrl e8d88dda40 parse semantic actions 2020-12-11 13:34:31 +01:00
Christoph 66e672d142 update tests, disable old parser tests bc not token-based 2020-12-10 19:17:54 +01:00
Christoph 336a94d8a3 update grammar to accept entire? language? 2020-12-10 19:17:26 +01:00
Christoph 4683924b46 new example progs 2020-12-10 19:17:06 +01:00
Christoph 5197ca011d parser sets values in nodes 2020-12-10 19:16:44 +01:00
Christoph 9a960d4cf7 add value to ast node 2020-12-10 19:16:35 +01:00
Christoph c1df906b10 slight logging change 2020-12-10 19:16:16 +01:00
Christoph 6229e9a0f8 fix grammar parsing bug 2020-12-10 19:16:07 +01:00
Christoph 7af7fb26a7 regen lexer 2020-12-10 19:15:53 +01:00
Christoph c18b912d2c update lexer grammar 2020-12-10 19:15:44 +01:00
Christoph edfb3bf7e3 update env 2020-12-10 19:15:34 +01:00
ChUrl 7a746902f9 new tests 2020-12-08 00:57:18 +01:00
ChUrl 6e1cdbc86c lexer regen 2020-12-08 00:57:06 +01:00
ChUrl 9fe887a52b logger update 2020-12-08 00:56:56 +01:00
ChUrl 96f2013701 better exception for parsing 2020-12-08 00:56:48 +01:00
ChUrl e25b43893b update grammar + todos 2020-12-08 00:56:24 +01:00
ChUrl 0bec71149f begin implementation of stups grammar 2020-12-07 23:34:55 +01:00
ChUrl 2543f700f9 test dangling else grammar 2020-12-07 23:34:44 +01:00
ChUrl cafa6f3981 update lexer 2020-12-07 23:34:31 +01:00
ChUrl 6c3d9f7e4f improved table printing 2020-12-07 23:34:22 +01:00
ChUrl 0c89e5b3dc new tests with lexer and parser 2020-12-07 23:34:09 +01:00
ChUrl 081ef492d6 slight grammar change 2020-12-07 23:33:46 +01:00
ChUrl ea4cf84c41 use logger for logging + fix bug in stringFirst 2020-12-07 23:33:28 +01:00
ChUrl aba8a51db2 introduce simple logger 2020-12-07 23:32:33 +01:00
ChUrl 509031ab31 improve grammar parsing 2020-12-07 20:57:26 +01:00
Christoph cec76298e8 reimplement first + follow + testing 2020-12-06 02:07:00 +01:00
Christoph 49e047ce56 update 2020-12-06 02:06:40 +01:00
Christoph 7764b6cdf6 update + fixes for parser 2020-12-04 18:30:24 +01:00
Christoph f60eef549e add test cases for from file generated parsers 2020-12-04 14:30:30 +01:00
Christoph 1652d17528 ll1parser new facctory method 2020-12-04 14:30:08 +01:00
Christoph 86ba647784 grammarrule comparison add 2020-12-04 14:29:57 +01:00
Christoph f29a44fc88 implement simple grammar parsing from correct file 2020-12-04 14:29:43 +01:00
Christoph c8a2d9a37b add grammar files 2020-12-04 14:29:23 +01:00
Christoph 25f4ea7ebc update 2020-12-04 14:29:15 +01:00
Christoph 1b0dd064d7 adapt implementation to use grammar wrapper 2020-12-04 13:22:54 +01:00
Christoph 1ae77b2e51 implement grammar and grammarrule 2020-12-04 13:22:33 +01:00
Christoph 27862eb75c update 2020-12-04 01:27:30 +01:00