28 Commits

Author SHA1 Message Date
Jonathan Turner
53c3e2ee25 Added break and return statements. Fixed inner block parsing 2009-06-09 13:16:11 +00:00
Jason Turner
995bcdba85 Fixed some new gcc gripes about non-const char* for strings 2009-06-05 02:48:19 +00:00
Jonathan Turner
d984f973f4 Added 'wesley' project. Added eval. Fixed some of the parsers to do correct delegation 2009-06-02 23:29:04 +00:00
Jonathan Turner
fc3b9de2d2 Flipped shift operator direction to match spirit 2009-06-01 19:18:55 +00:00
Jonathan Turner
f0088d8ade Bugfixes for multiline comments to properly preserve column and to span multiple lines 2009-06-01 19:11:27 +00:00
Jonathan Turner
ccc3a506dd A couple touchups to the parser to get the root node to include filename 2009-06-01 15:26:46 +00:00
Jonathan Turner
cca021c8c4 Fixed operator regex to allow for C-style comments. Reenabeld debug output 2009-06-01 13:44:18 +00:00
Jonathan Turner
307e557e5b Added comment lexing. Removed previous optimization. Flattened lex grammar. 2009-06-01 13:40:24 +00:00
Jonathan Turner
f692834fa8 Gave in to premature optimization. Lex regexes are now compiled together and the match is found in the resulting set, instead of incrementally searching for a match. 2009-05-31 11:57:29 +00:00
Jonathan Turner
6a9c5ee57f Added command delimiters 2009-05-30 13:01:52 +00:00
Jonathan Turner
22654b5754 Added nop operator to prevent incorrect aliasing 2009-05-29 16:04:31 +00:00
Jonathan Turner
14be974fb0 Fix a few crashers with And_Rule, Kleene_Rule, Plus_Rule, and Optional_Rule 2009-05-29 02:58:05 +00:00
Jonathan Turner
bf7fba3646 Moving project files into subdirs 2009-05-28 18:13:06 +00:00
Jonathan Turner
af9bd41221 Added Kleene star, plus, and optional 2009-05-28 12:49:17 +00:00
Jonathan Turner
ab3b9e2fe7 Added a couple notes to the larger sample 2009-05-27 21:42:34 +00:00
Jonathan Turner
891650b97d Added new ast nodes when new_id != -1 2009-05-27 21:39:35 +00:00
Jonathan Turner
2ca701aa32 Lots of small bugfixes re:parser. pimpl now works with ast keep and new_id 2009-05-27 21:01:56 +00:00
Jonathan Turner
10491e4ed8 A few small improvements to helper functions 2009-05-27 20:01:34 +00:00
Jonathan Turner
f6f6a8305e Sugared operators and helper functions starting to work 2009-05-27 19:56:05 +00:00
Jonathan Turner
7c42ab79bf The parser is coming alive. Now can successfully parse And and Or rules 2009-05-27 18:19:00 +00:00
Jonathan Turner
421a616924 Inch by inch, getting closer to working out what the parser needs 2009-05-27 17:42:54 +00:00
Jonathan Turner
332fdf0c8e Switch Token to smart pointer 2009-05-27 15:07:29 +00:00
Jonathan Turner
6538008172 Added filenames to tokens, removed from File_Position 2009-05-27 11:46:15 +00:00
Jonathan Turner
6a608f995a Starting to stand up the parser using std::pair 2009-05-26 22:39:55 +00:00
Jonathan Turner
7f628d9130 Working up parser combinators 2009-05-26 20:17:42 +00:00
Jonathan Turner
5424b6be41 Added line counting to lexer. 2009-05-26 16:59:29 +00:00
Jonathan Turner
ee8eb8773a Added quoted string, single quoted string, and comma lexing 2009-05-25 20:15:19 +00:00
Jonathan Turner
23fc75ca52 Initial check-in of langkit 2009-05-25 18:52:01 +00:00