Ignore any unexpected tokens #190
Unanswered
robinvdvleuten
asked this question in
Q&A
Replies: 1 comment
-
Yes, if you check the grammar syntax docs, the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create a parser for the
beancount
language syntax (https://beancount.github.io/docs/beancount_language_syntax.html), which allows (and silently ignores) any invalid tokens;Is there a way to allow Particicle to ignore any unexpected tokens? I found the
AllowTrailing()
option, but this only takes trailing tokens into account not tokens in between.I've tried both creating a stateful and a stateless lexer;
And using the following as test;
Beta Was this translation helpful? Give feedback.
All reactions