Why is this grammar not working #1593
mnaderhirn
started this conversation in
General
Replies: 1 comment
-
Hey @mnaderhirn . There's a couple things going on here that are issues. You don't need to explicitly handle whitespace (there's hidden terminals for that case, ex entry Reference:
(
references+=Refernence | // also allow declaring things you can reference, and collect them
('{{' Refernence '}}') |
('\\ref' '{' Reference '}')
)*; // zero or more of these For reference you can check out this modified version of your grammar. Hope that helps! |
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
-
Playground
I trying to implement the simple grammar in the playground and it is giving me errors, i dont understand. Could anyone have a look at it please?
Beta Was this translation helpful? Give feedback.
All reactions