[antlr-interest] Re: Lexing problem

mzukowski at yci.com mzukowski at yci.com
Thu Jun 5 10:20:10 PDT 2003


Ah, yes.  Good catch.

By the way, is this an open source grammar you're working on?  Just curious.

Monty

-----Original Message-----
From: Jim Irwin [mailto:jimirwin at acm.org] 
Sent: Thursday, June 05, 2003 10:16 AM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Re: Lexing problem


--- 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/ 


 

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




More information about the antlr-interest mailing list