[antlr-interest] How to have strings enclosed in " and/or "
Terence Parr
parrt at cs.usfca.edu
Fri Dec 10 09:51:07 PST 2004
On Dec 10, 2004, at 2:43 AM, matthew ford wrote:
> Yes I do
> I stop the string when I meet
> either " or " by themselves
Hmm...doesn't seem right to me. For example, here is some text that
should be one string...OR not depending on your interpretation; has
somebody in HTML land just dictated which way it goes like
if-then-else?
" foo " and more "
Ter
> if I meet
> "" or "" or "" or ""
> Then this is not the end of the string just an escaped quote
> matthew
>
> ----- Original Message -----
> From: "Terence Parr" <parrt at cs.usfca.edu>
> To: <antlr-interest at yahoogroups.com>
> Sent: Friday, December 10, 2004 8:32 AM
> Subject: Re: [antlr-interest] How to have strings enclosed in " and/or
> "
>
>
>>
>>
>> On Dec 9, 2004, at 11:36 AM, matthew ford wrote:
>>
>>>
>>> Hi Ter,
>>> What ambiguity do you see that I don't? Both tokens mean the same "
>>> = =
>>> "
>>> Perhaps I am too close the problem
>>
>> I just meant that you really don't know when to stop a string, do you?
>>
>> 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
>
>
>
>
>
>
>
>
--
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
<*> 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/
More information about the antlr-interest
mailing list