Commit Graph

12 Commits

Author SHA1 Message Date
Jason Orendorff
9336193aaf Allow RegEx matches of length 0. This seems more correct to me. (However, this is not super important in practice. Grammar files should not contain regular expressions that could match the empty string; if such a RegEx matched 0 characters once, it would match again and again forever, since it wouldn't consume any input.) 2013-10-26 23:52:54 -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
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
6d7b38a03b More work towards RNGLR. First, NodeTree is now a template. Second, I've started writing the actual GLR parser and GSS and other things, but am still in the first write process. 2013-07-28 19:45:08 -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
4c2fd967f0 Perens now work fully! The RegEx part of Kraken should now be fully legitimate. The only problem is not gracefully letting the user know about faulty input, but that goes for all of Kraken. 2013-07-07 02:13:05 -04:00
Nathan Braswell
502929963c Added alternation and fixed a bug with the repetition operators exposed by the addition of the alternation. (for some reason the repetition operators used a loop making endless circles) 2013-07-04 15:10:32 -04:00
Nathan Braswell
84566c4ff6 Extended the Regular Expression class to now support * and ? as well as +. Next up, perens and alternation 2013-07-03 23:40:36 -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