35 Commits

Author SHA1 Message Date
d931bcb513 Do not expand rules 2021-08-28 09:23:08 -04:00
2e16b0bd6e Start on Item and ItemSet 2021-08-28 09:02:19 -04:00
6ce94e15af Expand rules 2021-08-28 08:11:06 -04:00
3f92ae46c4 Map rule components to Token/Rule references 2021-08-22 21:21:41 -04:00
00016f16b3 Combine Grammar and Generator into top-level Imbecile class 2021-08-22 21:04:46 -04:00
9273bfccf6 Move Token/Rule out of Grammar class 2021-08-19 20:00:40 -04:00
9459883e74 Add Lexer class; Move LexerDFA to Lexer::DFA 2021-08-18 17:09:45 -04:00
28591907c1 Move FA class out of Regex class 2021-08-18 17:05:03 -04:00
24d12be3b9 Add TOKEN enum entries for EOF, decode error, drop, and none 2021-07-05 20:11:55 -04:00
4beb3d2016 Add some token constants 2021-06-27 23:09:42 -04:00
d552f2a540 CLI: accept --log option 2021-06-19 12:06:02 -04:00
d2fac07249 Add Generator class 2021-06-15 16:51:36 -04:00
a34272dfd6 Add Grammar::Rule class 2021-06-14 22:49:43 -04:00
c6bac6d3a1 Rename TokenDFA -> LexerDFA 2021-06-08 13:54:46 -04:00
7f54778ba8 Rename Regex::DFA to TokenDFA 2021-06-06 15:18:21 -04:00
afea886ecb Add Grammar::Token class 2021-06-06 14:04:33 -04:00
03b2e87186 Grammar takes in input string instead of file name 2021-06-06 10:09:53 -04:00
ed3f599e25 Create common FA/State/Transition classes across NFA/DFA 2021-06-06 09:41:23 -04:00
3987f08cd7 Add CodePointRange class 2021-05-23 17:52:20 -04:00
f38a7456e9 Add DFA#nil_transition_states 2021-05-20 17:08:34 -04:00
7196a0605a Add DFA class 2021-05-18 16:31:16 -04:00
24054461a2 Merge Regex::Parser into Regex, move Unit to its own file 2021-05-18 16:14:42 -04:00
791340b292 Build NFA for each token pattern 2021-05-17 22:57:18 -04:00
885ef6c151 Rename Regex::Unit -> Regex::Parser 2021-05-07 16:57:05 -04:00
b8c01ca1d1 Move Unit stuff from Imbecile::Regex to Imbecile::Regex::Unit 2021-05-07 15:10:51 -04:00
b04ff56308 Add Regex class 2021-05-02 15:22:45 -04:00
ca1d2d1e5c Fix class name determination from output file name 2021-05-01 17:01:15 -04:00
13403405b0 Add Error class to handle grammar loading errors 2021-05-01 16:54:24 -04:00
07dd68e367 Write output file from ERB template 2021-05-01 16:44:01 -04:00
c1666a1e74 Require output file on command line 2021-05-01 14:52:16 -04:00
7f27b3fd6f Exit with CLI exit code 2021-05-01 09:34:38 -04:00
37ad87d602 Rename GrammarParser -> Grammar 2021-05-01 09:33:35 -04:00
0cc4516c0e Add GrammarParser class to parse input file 2021-05-01 08:22:14 -04:00
d879a93d09 Add bin/imbecile and Imbecile::CLI module 2021-04-29 23:26:52 -04:00
04e17cde30 Add "bundle gem"-generated files 2021-04-29 23:22:23 -04:00