[antlr-interest] should lexical rules with identical content be treated equally?

Gavin Lambert antlr at mirality.co.nz
Sun Oct 14 12:32:25 PDT 2007


At 08:59 13/10/2007, Claude Quézel wrote:
>paragraph : Non_variable;
>
>protected Variable : '{' DVCONTENT '.' ID '}' 
>;  // **** this is the line that puzzles me! ****
>
>protected Non_variable : (ESCAPED_SEQUENCE | CHARACTERS)*;
>
>fragment CHARACTERS : ~SPECIAL_CHARACTERS;
>
>fragment ESCAPED_SEQUENCE : '\\' SPECIAL_CHARACTERS;

"protected" is V2.  "fragment" is V3.  Don't mix them.



More information about the antlr-interest mailing list