Thx Mike for a quick reply.
I am little bit confuse in ANTLR 4 grammar, i.e. upto how many mode commands execute/match or take into consideration..like
OPEN
: '<' -> pushMode(INSIDE)
;
mode INSIDE;
HTML_CLOSE
: '>' -> popMode
;
HTML_SLASH_CLOSE
: '/>' -> popMode
;
HTML_SLASH
: '/'
;
HTML_EQUALS
: '='
;
HTML_QUOTED_STRING
: '"' ~[<"]* '"'
| '\'' ~[<']* '\''
;
//HTML_UNQUOTED_STRING
// : [a..zA..Z]
// ;
HTML_HEX
: '#' HEXDIGIT+
;
HTML_Name
:
NameStartChar NameChar*
;
i.e. On executing the pushMode() under "OPEN" rule, how many next rules would be matched against INSIDE mode e.g. HTML_CLOSE, HTML_SLASH_CLOSE, HTML_SLASH etc. i.e. what all possible rules would be matched, what are all eligible rules for INSIDE mode i.e. upto which rule??