News for hackers. Stuff that matters.
Re:Ohm: Parsing Made Easy by tomp on Tuesday October 17, 2017 @12:55PM (#15492520)
A good example of the kind of ambiguitiy I mean is the "dangling else" problem.

Sure, for this example, the solution is easy - just declare whichever you want first! But in more complex grammars, conflicting rules can be declared very far away, and it can be highly non-obvious which should be prioritised, or that there even is a conflict! LR parser generators point out these conflicts (the infamous shift/reduce and reduce/reduce conflicts), which I find very useful.

There are no comments on this comment yet.