You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@digama0's KLR does some very nice things, but it's a semialgorithm (not guaranteed to halt on failure) which makes me very reluctant to include it. Could alternatively port SMM2's packrat parser, which does not certify unambiguity.
The text was updated successfully, but these errors were encountered:
I'm not sure if I mentioned this, but you can view compositing depth as a parameter to the algorithm, that is, the maximum number of rules that can be nested. This gives a family KLR(n) of parse algorithms, each of which have guaranteed halting, and any KLR grammar is KLR(n) for some n. If this was annotated in the unambiguous directive in set.mm, you could resolve this issue. (I think you need 4 or 5 composites to get all the variations on df-oprab.)
Ah, that works for me. (Will have to understand the algorithm a little bit better before I can start on it; I wrote an LR(0) parser for JSON once but that's about it.)
@digama0's KLR does some very nice things, but it's a semialgorithm (not guaranteed to halt on failure) which makes me very reluctant to include it. Could alternatively port SMM2's packrat parser, which does not certify unambiguity.
The text was updated successfully, but these errors were encountered: