[antlr-interest] Solution to " How to have strings enclosed in " and/or ""

matthew ford Matthew.Ford at forward.com.au
Mon Dec 13 23:42:23 PST 2004


Hi Ter,
Still no go,

Tried upping k to 7 and got
   // nongreedy exit test
   if ((LA(1)=='"'||LA(1)=='&') && (true) && (true) && (true) && (true) &&
(true) && (true)) break _loop11;

test actionLexer.g is attached
matthew
----- Original Message ----- 
From: "Terence Parr" <parrt at cs.usfca.edu>
To: <antlr-interest at yahoogroups.com>
Sent: Monday, December 13, 2004 7:27 AM
Subject: Re: [antlr-interest] Solution to " How to have strings enclosed in
" and/or &quot;"


>
> On Dec 12, 2004, at 12:34 AM, matthew ford wrote:
>
> > No greedy=false did no do it
> >
> > It generated the test
> >
> >    // nongreedy exit test
> >    if ((LA(1)=='"'||LA(1)=='&') && (true)) break _loop11;
> > but I need to match  '&' 'q' 'u' 'o' 't' ';' in order to exit not just
> > &
>
> Is k=2 or k>=5?
>
> Ter
> --
> CS Professor & Grad Director, University of San Francisco
> Creator, ANTLR Parser Generator, http://www.antlr.org
> Cofounder, http://www.jguru.com
> Cofounder, http://www.knowspam.net enjoy email again!
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: actionLexer.g
Type: application/octet-stream
Size: 1090 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20041214/ff3e5d8a/actionLexer.obj


More information about the antlr-interest mailing list