Open Storyyeller opened 3 years ago
Nevermind, it turns out that you can still use LALR by running lalrpop with LALRPOP_LANE_TABLE=disabled
and putting [LALR]
above your grammar()
declaration. It's a shame this isn't better documented.
Maybe consider re-naming this issue to "Document how to use LALR mode", and then submit a PR to add this info to the readme?
For some users, it might also be of interest to see, whether a grammar will also fullfill the LALR restrictions. In case this is easy to check, one could consider adding a restriction here, despite having no benefits over a full LR1 construction.
Lalrpop used to support LALR generation as well as LR, but this was removed following the switch to lane tables. However, the readme claims that it is still possible to use LALR.