Why it does not work? #792
Answered
by
msujew
Serhioromano
asked this question in
Q&A
-
This works if I type
This does not
It cannot resolve
|
Beta Was this translation helpful? Give feedback.
Answered by
msujew
Nov 28, 2022
Replies: 1 comment 1 reply
-
Hey @Serhioromano, do you already have a keyword or other terminal in your grammar which parses the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Serhioromano
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @Serhioromano,
do you already have a keyword or other terminal in your grammar which parses the
INT
string? Keywords are always preferred when lexing, so in case you encounter justINT
, it will try to lex theINT
keyword, not theANY_INT
terminal which lexes the same token.