38 Commits

Author SHA1 Message Date
9760da4df4 wip 2023-08-20 21:19:34 -04:00
35acdde09f generates a parser specs passing 2023-08-20 20:49:24 -04:00
aef5367378 Get test_lexer_unknown_character working for C 2023-08-20 18:43:33 -04:00
36213d9e9c wip 2023-08-20 17:25:48 -04:00
c7185edef0 Add spec support for C tests 2023-08-20 16:38:35 -04:00
c4bcb465da Remove std.stdio import and printing of unexpected tokens 2023-07-17 21:57:31 -04:00
d39fa61af0 Remove D language reference from test names 2023-07-15 14:19:30 -04:00
6333762414 Add user guide math expression example 2023-07-14 20:32:50 -04:00
653b4e00f6 Add testutils module with assert_eq() 2023-07-14 15:48:44 -04:00
5ce562cbc3 Allow configuring API prefix - close #9 2023-07-13 18:06:24 -04:00
424ddfe55a Output position info for various error return codes - close #10 2023-07-12 19:22:44 -04:00
83a4037740 Return a lexer error on unexpected input - close #3 2023-07-08 10:36:58 -04:00
9895733a05 Switch unit tests from gdc to ldc2 2023-06-29 19:16:36 -04:00
e2100f6ccd Move JSON parser source to standalone file 2023-01-16 14:59:43 -05:00
dbc5560aec Add JSON parser test case 2022-11-14 23:07:10 -05:00
62451f3a92 Allow multiple test files to be compiled 2022-11-14 21:00:49 -05:00
8dc27686aa Rename result_type to ptype, parser result to pvalue 2022-11-12 13:29:10 -05:00
bca0a14371 Allow storing a result value for a token from a lexer code block 2022-10-16 21:40:25 -04:00
ca8a360c0e Provide matched text to lexer user code block 2022-10-15 13:37:34 -04:00
623c644e74 Work on real D strings instead of ubyte pointer and length
Also fix a couple UTF-8 decoder bugs!
2022-10-15 13:32:33 -04:00
de93d23585 Add test for non-LALR grammar failing to generate parser 2022-10-13 05:17:06 -04:00
ad09ff039a Add spec to test parsing lists 2022-10-13 05:02:05 -04:00
727c8cd1ea Execute rule user code blocks when reducing the rule 2022-10-13 04:56:50 -04:00
02be6de48e Add lexer modes and $mode() code expansion 2022-10-09 22:49:01 -04:00
66d654b6b9 Add $token() user code block expansion 2022-10-02 10:43:47 -04:00
43fb74fe4b Capture and verify stdout results from tests 2022-10-02 10:31:07 -04:00
01ef4fc27c Rename some test files 2022-10-02 10:10:04 -04:00
e7e30c4f28 Add pattern statement 2022-09-30 21:05:18 -04:00
04367db0ac Add forward slashes around patterns and parse more robustly 2022-09-28 23:05:01 -04:00
672098ad32 Execute user code blocks assigned to tokens 2022-09-24 17:31:40 -04:00
b682c72b17 Add semicolon to end of all grammar statements 2022-07-23 22:09:19 -04:00
382e17804c Test SLR grammar 2022-06-27 21:06:03 -04:00
30f4cfcc99 Write parser log file
Fix bug of skipping rule set IDs.
Remove unneeded out_sets from ItemSet class.
2022-06-26 11:06:55 -04:00
2fbe13e071 Do not consume lookahead token when reducing 2022-06-25 21:35:54 -04:00
f2cc5b112e Handle shifting states after reducing 2022-06-25 16:16:20 -04:00
df8088c3c6 Clean up rule format in grammar files 2022-06-05 16:28:35 -04:00
fe607291f4 Use .propane extension for test grammars 2022-06-05 15:18:55 -04:00
ddadc2008b Rename to propane 2022-05-28 20:20:03 -04:00