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
when the parser successfully parses a rule then errors parsing another rule due to it not being able to match any rules it should raise an error but it doesnt
for example
passedrule
failedrule
passedrule gets passed then failedrule gets silently skipped and halts the parsing but suceeds, and the ast tree only shows the ast for passedrule
failedrule
failedrule gets raised and error is reported since no rules previously match
The text was updated successfully, but these errors were encountered:
I know this is a 2+ year old issue but I think I ran into the same problem. What I realized is that my top-level rule didn't have any start/end terminators, so the parser would just silently exit on any unrecognized input instead of failing with an error.
Notice the example language definition ends this way:
when the parser successfully parses a rule then errors parsing another rule due to it not being able to match any rules it should raise an error but it doesnt
for example
passedrule
gets passed thenfailedrule
gets silently skipped and halts the parsing but suceeds, and the ast tree only shows the ast forpassedrule
failedrule
gets raised and error is reported since no rules previously matchThe text was updated successfully, but these errors were encountered: