Replies: 1 comment
-
|
I've found a workaround I'm not quite happy with but works: Do not use AllowTrailing and extract the position from the returned error. I'd still love to know of a cleaner solution. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to access the string, reader position, whatever..., after parsing is finished with AllowTrailing. Reading the reader after parsing is finished, doesn't seem to work as it seems to be entirely consumed even if it is not required for the Grammar. I also can't add an additional field to the grammar as I don't want the trailing component to go through the lexer.
Beta Was this translation helpful? Give feedback.
All reactions