[antlr-interest] v3 equivalent of char skip suffix.

jbb at acm.org jbb at acm.org
Wed Jul 18 09:54:09 PDT 2007


Alex Shneyderman asked:
>what would be the v3 equivalent of for the following v2 rule:
>
>BR  :  '<'! "br" '>'! ;

please see the wiki lexing FAQ entry which discusses removing quotes:

http://www.antlr.org/wiki/pages/viewpage.action?pageId=1461


or, in this case, simply:

BR : '<br>' { setText("br"); } ;



HTH
   -jbb


More information about the antlr-interest mailing list