Replies: 3 comments
-
|
There isn't enough information to form an answer. We need the entire grammar and input. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I had some things declared as parser rules when they should have been lexer rules. This was my whole problem. Is there a document somewhere outline when something should be a a lexer rule or a parser rule? And when we should use fragments? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
just-ero
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.
-
Hello,
sorry, I didn't know how else to explain it.
What I would like to make work is the following:
However, currently, I get an error saying
string32is unexpected and it lists every member except forstring[0-9]+andbyte[0-9]+.How can I make this work?
Additionally, I seem to have a whitespace problem:
mismatched input '{\r\n}' expecting '{'For this rule:
state : 'state' '(' STRING (',' STRING)? ')' '{' declaration+ '}'Why would this happen?
Beta Was this translation helpful? Give feedback.
All reactions