If I understood well, the lexer will check for all tokens (NAME and VALUE)
even if I tell him to look only for VALUE. That look like weird ^^'
I'm a little confused about tokens... Your answer is very clear : I have not
to do such low level validation because, with the context, I can tell
exactly where the error is in the tree parser.
At this point of view, I should make an only token that match all other
tokens :
TOKEN : ('a'..'z'|'A'..'Z'|'0'..'9')+
What can of tokens (expressions, conditions, etc...) I can use to correctly
distinguish them ?
--
View this message in context:
http://antlr.1301665.n2.nabble.com/Problem-with-MismatchedTokenException-tp6257670p6258339.html
Sent from the ANTLR mailing list archive at Nabble.com.
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
--
You received this message because you are subscribed to the Google Groups
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/il-antlr-interest?hl=en.