[antlr-interest] Re: Lexing problem

Jim Irwin jimirwin at acm.org
Thu Jun 5 10:15:31 PDT 2003


--- In antlr-interest at yahoogroups.com, mzukowski at y... wrote:
> 
> STRING: '"' (~('"' | '#'))* CODESCAPE | '"';
> CODESCAPE: '#' (~('"' | '#'))* STRING | '#';
> 
> Monty

Thanks, it seems to work quite well.  I changed the rules slightly to 
STRING: '"' (~('"' | '#') | CODESCAPE)* '"';
CODESCAPE: '#' (~('"' | '#') | STRING)* '#';




 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list