Skip to content

Why it does not work? #792

Answered by msujew
Serhioromano asked this question in Q&A
Nov 28, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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 just INT, it will try to lex the INT keyword, not the ANY_INT terminal which lexes the same token.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Serhioromano
Comment options

Answer selected by Serhioromano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants