-
|
According to the documentation, the MatchResult is supposed to provide the rightmost fail position along with the list of expected rules at that position. Now I am trying to parse the following broken program: Note that the So far, so good. But if we alter the grammar above with a supposedly innocent decoration - adding a description to the Fun rule - the result becomes much less funny: So, the matcher is no longer able to point me to the exact location of the problem. It reports it much further left in the source than it should. So, the question is: how do I get the "right" rightmost failure without stripping off all the rule descriptions? P.S. The ohm version I'm running is 17.1.0 Below is the complete grammar that produces this broken result: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Duplicate of #302 and/or #544 - recommend closing in favor of those, although this example/use case should be kept in mind when addressing them. |
Beta Was this translation helpful? Give feedback.
Duplicate of #302 and/or #544 - recommend closing in favor of those, although this example/use case should be kept in mind when addressing them.