paraphrase
is not a valid option in ANTLR 3 or ANTLR 4. Including it would either produce a warning or error, and it would not have any impact on behavior.
ANTLR Paraphrase, what does it do?
-
19-06-2023 - |
Pergunta
Just starting to write my first lexer and i've come across this:
RPAREN options { paraphrase = ")"; } : ")";
I'd like to know what paraphrase actually does, does it mean that in this case RPAREN can also be used as simply ) in the parser?
thanks!
EDIT - just found this online
We can use paraphrases in Rules to make error messages user-friendly
is this correct?
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow