[antlr-interest] literal and string distinction
Thomas Krebs
Thomas_Krebs at gmx.de
Tue Feb 7 08:46:59 PST 2006
hi,
A file format I have to read does not distiguish between literals and
strings. So at any time a string value can have the value of a literal.
Is there any reasonable way of dealing with that?
I'm thinking of something like what is accomplished with the
options "testLiterals" of the lexer which I would like to be able to set
in rules from the parser.
Currently my rules in the parser honour the literals wherever a
string can occur, which is quite ugly.
Any solution?
Thomas
More information about the antlr-interest
mailing list