Commit Graph

16 Commits

Author SHA1 Message Date
Nathan Braswell
d5512ec78e Fix the non-working Lexer test. 2013-11-03 20:36:18 -05:00
Nathan Braswell
77f2b0a3e5 Lot's of work on a CGenerator, AST and language improvements 2013-11-01 02:52:18 -04:00
Jason Orendorff
14a4f822ae Add a passing Lexer test. 2013-10-27 00:01:39 -07:00
Jason Orendorff
4d156fa743 Fix substr() bug when the Lexer consumes all the input at once. 2013-10-27 00:00:55 -07:00
Jason Orendorff
d2d38e2516 Fix what looks like an off-by-one error in RegEx::longestMatch()'s lastMatch calculation, and a corresponding +1 in code using longestMatch, and add a test. 2013-10-26 23:48:02 -07:00
Jason Orendorff
7859b29725 Fix a minor bug in the lexer (it would not match the last character of the input) and add Lexer tests. 2013-10-26 23:13:15 -07:00
Nathan Braswell
b9ffe33d0b Made Symbol always stack, not heap, allocated. Finally fixed bugs with ASTTransformation. 2013-10-02 03:15:20 -04:00
Nathan Braswell
2eaf640855 In progress 2013-08-16 00:03:26 -04:00
Nathan Braswell
680d978dcb Problem was actually in grammer, fixed it. Also made identical rules with different lookahead merge. Now just started on creating parse trees. Stopping for night. 2013-08-06 01:49:45 -04:00
Nathan Braswell
d5b33efb22 Null rules work in RNGLR now, but there seems to be a bug where somehow some states/rules get no lookahead. 2013-08-02 15:21:42 -04:00
Nathan Braswell
f84657f1ed Fixed a lot of bugs. Actually gets through the entire experimental grammer. (A largeish experimental grammer for Kraken written to continue testing and to really start language development. 2013-07-10 23:50:53 -04:00
Nathan Braswell
1c85e3693e Added support for null rules, works well. 2013-07-09 02:45:59 -04:00
Nathan Braswell
cc6ff21986 Fixed some bugs, including modifing StringReader to treat quoted strings as whole words. 2013-07-02 13:14:40 -04:00
Nathan Braswell
85da0bf646 Lexer/RegExs now work on a very basic level. Regular expressions have not been fully implemented, but the structure is there. It creates trivial regexs that only accept a specified sequence, no actual regular expression power. 2013-07-02 01:47:42 -04:00
Nathan Braswell
94a7739bd9 Added structure for Regular Expressions, saving work as a backup because of software upgrade. 2013-07-01 22:45:33 -04:00
Nathan Braswell
0c651a5d9e Added EOF symbol, making the getTable() saner for ACCEPT and lookahead support in ParseRule 2013-06-13 14:25:10 -04:00