Commit graph

86 commits

Author SHA1 Message Date
Paul Beckingham
35d246aa32 Grammar: Added ::rules 2015-12-22 23:39:50 -05:00
Paul Beckingham
459bf183dc Grammar: Added ::start 2015-12-22 23:39:13 -05:00
Paul Beckingham
791e870eda gr: Instantiates a parser 2015-12-22 23:31:32 -05:00
Paul Beckingham
9569b5dcc3 timew: Instantiates a parser 2015-12-22 23:31:09 -05:00
Paul Beckingham
bc22348822 LR0: Added ::createParseTables, ::dump 2015-12-22 23:26:06 -05:00
Paul Beckingham
fa375615cd Grammar: Added regex support 2015-12-22 15:28:00 -05:00
Paul Beckingham
ee667cb68c Lexer: Added pattern support 2015-12-22 15:26:57 -05:00
Paul Beckingham
fbc47dc1e4 gr: Added utility to check grammar 2015-12-22 12:26:06 -05:00
Paul Beckingham
75ca4a3b71 Tests: Refactoring
- Added functions to reduce code size.
- Added test to check for bad file, bad grammar.
2015-12-22 10:07:07 -05:00
Paul Beckingham
18186de479 Tests: Added test for trivial but non-empty grammar 2015-12-22 09:48:53 -05:00
Paul Beckingham
59e2b7911b Tests: Added test for empty grammar string 2015-12-22 09:46:14 -05:00
Paul Beckingham
d1e19d3171 Grammar: Validates the presence of a start rule 2015-12-22 09:43:04 -05:00
Paul Beckingham
eb6932c81a Tests: Added Grammar test 2015-12-22 09:40:50 -05:00
Paul Beckingham
e20ab05c0d Grammar: Implemented ::validate 2015-12-22 09:21:02 -05:00
Paul Beckingham
a0b5db4c89 Common: Refactored listDiff 2015-12-22 08:57:35 -05:00
Paul Beckingham
f637a10078 Common: Added liѕtDiff template function 2015-12-22 08:45:40 -05:00
Paul Beckingham
83d7134d64 Grammar: Code cleanup 2015-12-22 08:26:33 -05:00
Paul Beckingham
6c581fb8c2 Grammar: Added stubbed ::generateParseTable 2015-12-22 08:09:41 -05:00
Paul Beckingham
04f8b6bd6a Grammar: Added ::validate for consistency checking 2015-12-22 08:08:39 -05:00
Paul Beckingham
6fac8a4a54 Grammar: Upgraded tokens from std::string to full object 2015-12-22 08:06:20 -05:00
Paul Beckingham
29cb35123a Grammar: Added Production::decorate to capture token decoration one day 2015-12-22 07:50:04 -05:00
Paul Beckingham
d8e4946537 timew: Added notes for implementation 2015-12-21 00:36:20 -05:00
Paul Beckingham
cf19677488 Common: Added Timer 2015-12-21 00:28:37 -05:00
Paul Beckingham
25a6dd4920 Grammar: Fixd bug with missing file error message 2015-12-21 00:15:34 -05:00
Paul Beckingham
8991a3c87b Grammar: Implemented ::loadFromFile and ::loadFromString 2015-12-21 00:08:26 -05:00
Paul Beckingham
3c13aa8490 Grammar: Added initial CLI grammar 2015-12-21 00:08:07 -05:00
Paul Beckingham
fa0c0e5fa7 Lexer: Added number support 2015-12-20 22:00:02 -05:00
Paul Beckingham
53bb3952b8 Lexer: Added hex number support 2015-12-20 21:19:03 -05:00
Paul Beckingham
b9e5d94178 timew: Testing Grammar::loadFromFile 2015-12-20 20:46:05 -05:00
Paul Beckingham
d4d3ec4988 Common: Eliminated side-effect version of split 2015-12-20 16:40:07 -05:00
Paul Beckingham
1e6412bcb1 Common: Modified split to be more pure function 2015-12-20 16:35:45 -05:00
Paul Beckingham
801f39d2fa timew: Instantiates Grammar 2015-12-20 16:20:15 -05:00
Paul Beckingham
a5922b7797 Tests: Enabled Lexer::Type::string tests 2015-12-20 16:04:43 -05:00
Paul Beckingham
95b2b25323 Lexer: Added ::typeName and ::typeToString for testing 2015-12-20 16:02:11 -05:00
Paul Beckingham
d4420f1b22 Common: Added FS + tests 2015-12-20 15:39:44 -05:00
Paul Beckingham
459702477d Color: Readied for when Lexer enters common 2015-12-20 15:07:34 -05:00
Paul Beckingham
31c145ef9e Lexer: Added string support 2015-12-20 15:04:32 -05:00
Paul Beckingham
d236315450 Docs: Updated docs 2015-12-20 13:19:54 -05:00
Paul Beckingham
1ba3652c0e Lexer: Added ::trim methods 2015-12-20 13:11:32 -05:00
Paul Beckingham
a97f819423 Tests: Added Lexer tests 2015-12-20 12:50:41 -05:00
Paul Beckingham
897bc0bc14 Lexer: Added minimal lexer that currently only identifies words 2015-12-20 12:12:07 -05:00
Paul Beckingham
77b1c6ad35 Grammar: Stubbed grammar object 2015-12-20 11:51:30 -05:00
Paul Beckingham
dd1622a1e4 Build: Renamed main.cpp to timew.cpp
- Adjusted copyright.
- Fixed common dir bug.
2015-12-20 11:50:18 -05:00
Paul Beckingham
2c181ec07e Test: Added tests for common/text.cpp 2015-12-20 11:21:33 -05:00
Paul Beckingham
648517f608 Test: Added rx.t 2015-12-20 10:51:30 -05:00
Paul Beckingham
cbbbe5d0eb Common: レeduced included headers 2015-12-20 10:07:12 -05:00
Paul Beckingham
4a65106fd2 Common: REduced included headers 2015-12-20 10:04:00 -05:00
Paul Beckingham
f1ab47bfdd Common: Reduced included headers 2015-12-20 10:03:11 -05:00
Paul Beckingham
2f37a72aa9 Common: Reduced included headers 2015-12-20 10:02:15 -05:00
Paul Beckingham
94248e57ea Common: Added README identifying rules 2015-12-20 09:59:04 -05:00