[antlr-interest] Parsing expressions inside a double quoted string?
Rodrigo B. de Oliveira
rodrigobamboo at hotmail.com
Fri Jul 11 11:25:31 PDT 2003
Oh, I see.
I didn't think it was possible... I've just went through all the docs and
it's clear how it works now, thanks.
I still haven't been able to figure it all out. For a start I want the
lexers to transform this:
"Hello ${foo}, ${2 + 2}"
into this:
"Hello" + (foo) + ", " + (2 + 2)
I'll give it some thought again later tonite.
Thanks again,
Rodrigo
----- Original Message -----
From: "Pete Forman" <pete.forman at westerngeco.com>
To: <antlr-interest at yahoogroups.com>; <antlr-interest at yahoogroups.com>
Sent: Wednesday, July 09, 2003 11:19 AM
Subject: Re: [antlr-interest] Parsing expressions inside a double quoted
string?
> At 2003-07-09 07:43 -0300, Rodrigo Oliveira wrote:
> >You mean by using a filter?
>
> Not a filter but a second lexer. The main lexer should switch to the
> second when it finds the opening double quote. One example is in the Java
> parser for javadoc comments IIRC.
>
> --
> Pete Forman -./\.- Disclaimer: This post is originated
> WesternGeco -./\.- by myself and does not represent
> pete.forman at westerngeco.com -./\.- opinion of Schlumberger, Baker
> http://petef.port5.com -./\.- Hughes or their divisions.
>
>
>
>
> 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