3bffe98df0
[parser] one_or_more
...
Finally making lists easier
2024-11-10 18:47:24 -08:00
5064a768e7
[all] A whole new style for grammars
...
Say good by to the sea of `self.`!
2024-11-09 11:21:30 -08:00
27e6bb413c
[parser] Remove Canonical LR1 generator
...
This is fine probably.
2024-10-26 07:25:37 -07:00
2d5c73f0b0
[parser] Remove LR0 and SLR1
...
Sorry, when this was educational it was nice to have the other
generators but as part of cleaning I'm just getting rid of them.
2024-10-15 07:43:52 -07:00
2656a1d328
[parser] Remove bad LALR implementation, start cleanup
2024-10-10 07:58:16 -07:00
474bbf6964
[test] Correct doc comment
2024-10-05 16:02:39 -07:00
eef1db72da
[parser] Pager's algorithm. Faster.
...
As good as LALR but the implementation isn't embarassing. (Still
pretty bad though.)
Honestly the next thing to do is to delete LALR and just use Pager's
and also rebuild ConfigSet et al to be ItemSet so that Pager's alg
can go even faster. I think I want to keep LR1 just for completeness
so I might as well not delete SLR and LR0, although I *could* I
suppose.
2024-10-05 16:00:41 -07:00
b3b2102864
Record trivia in tokens
...
This will make our formatting better I think.
2024-09-12 06:22:49 -07:00
dc03bf7373
Grammars can be named
2024-08-29 08:00:40 -07:00
2473ae713d
Trivia tests
2024-08-24 15:09:08 -07:00
c0b623bd6d
Remove unused imports
2024-08-24 08:36:20 -07:00
58c3004702
Move terminals into grammar definition
...
Starting to work on machine-generated lexers too
2024-08-23 07:24:30 -07:00
f6bc2ccea8
Move the examples into tests
2024-06-15 12:23:36 -07:00
e04aa1966e
Start moving the examples into tests
2024-06-15 07:52:16 -07:00
c82f53c346
Document the decision
2024-06-15 06:18:04 -07:00
fb2dff51df
Tests. Well, test.
2024-06-15 06:14:37 -07:00