Josh Holtrop josh
josh pushed to master at josh/propane 2022-10-09 22:49:25 -04:00
02be6de48e Add lexer modes and $mode() code expansion
josh pushed to master at josh/propane 2022-10-04 22:24:01 -04:00
b2d11321fe Add grammar syntax to specify lexer mode for tokens and patterns
josh pushed to master at josh/propane 2022-10-03 21:41:34 -04:00
6bd9d4a09b Remove _TOKEN_NONE and use _TOKEN_COUNT instead
josh pushed to master at josh/propane 2022-10-03 21:24:49 -04:00
ced5a56424 Support global user code blocks
josh pushed to master at josh/propane 2022-10-02 10:44:04 -04:00
66d654b6b9 Add $token() user code block expansion
josh pushed to master at josh/propane 2022-10-02 10:31:20 -04:00
43fb74fe4b Capture and verify stdout results from tests
josh pushed to master at josh/propane 2022-10-02 10:10:17 -04:00
01ef4fc27c Rename some test files
josh pushed to master at josh/propane 2022-10-02 10:08:04 -04:00
f46b5b3f4d Remove TOKEN_EOF; define EOF token and start rule in Generator
josh pushed to master at josh/propane 2022-10-01 10:36:58 -04:00
150be33826 Assign pattern code IDs in Generator instead of Grammar
josh pushed to master at josh/propane 2022-09-30 21:05:41 -04:00
e7e30c4f28 Add pattern statement
josh pushed to master at josh/propane 2022-09-28 23:05:23 -04:00
04367db0ac Add forward slashes around patterns and parse more robustly
josh pushed to master at josh/propane 2022-09-27 21:22:39 -04:00
1547528ecf Split grammar statement parsing into separate methods
62cb5c03f2 Refactor grammar parsing a bit
4b148f3797 Add Grammar spec
a4c5546876 Disable parser debug output
Compare 4 commits »
josh pushed to master at josh/propane 2022-09-25 14:57:50 -04:00
48704295bb Rename lexer state "accepts" to "token"
josh pushed to master at josh/propane 2022-09-25 14:48:55 -04:00
4d716f6c10 Remove Token#c_name; use given token case in token constants
josh pushed to master at josh/propane 2022-09-25 14:44:52 -04:00
01c9340819 Rename lexer variables to reflect trying to get longest match
josh pushed to master at josh/propane 2022-09-24 17:32:03 -04:00
672098ad32 Execute user code blocks assigned to tokens
josh pushed to master at josh/propane 2022-09-19 22:17:11 -04:00
92ce30f354 Add tokenid keyword
josh pushed to master at josh/propane 2022-09-15 22:47:02 -04:00
38ae5ac7a1 Split Token class into Token/Pattern
josh pushed to master at josh/fart 2022-09-11 10:54:36 -04:00
deb16eeef7 Update to rscons-3.1.0
josh pushed to d at josh/hos 2022-09-06 22:35:47 -04:00
b3ca9af48a Disable PIC