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
Expected "~", "&", "#", an identifier, """, a number, "(", "[", "``", "{", "--", "|", or "}"
I'm wondering how syntax errors are calculated in general? As in, what is the strategy for determining the true error?
Could it simply be described as:
A summary of all patterns which failed to match the right-most position of the input?
From that right-most failure position how are you determining what was "expected"? When you have a complex set of rules parsing a position (and failing) are all failing patterns useful or only terminals?
The text was updated successfully, but these errors were encountered:
I'm looking at your error docs on syntax errors here:
https://github.com/ohmjs/ohm/blob/main/doc/errors.md#grammar-syntax-error
And it uses this example grammar:
With this error message
I'm wondering how syntax errors are calculated in general? As in, what is the strategy for determining the true error?
Could it simply be described as:
From that right-most failure position how are you determining what was "expected"? When you have a complex set of rules parsing a position (and failing) are all failing patterns useful or only terminals?
The text was updated successfully, but these errors were encountered: