It shows a lexer with these rules (and in this order):
OPEN : '<' -> pushMode(INSIDE) ;
XMLDeclOpen : '<?xml' S -> pushMode(INSIDE) ;
According to the book (p. 74) the lexical rule listed first is favored:
ANTLR lexers resolve the ambiguities between lexical
rules by favoring the rule specified first.
--
You received this message because you are subscribed to a topic in the Google Groups "antlr-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/antlr-discussion/qVoRtkM-1mk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to antlr-discussi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.