[antlr-interest] String literal containing '(single quote)?
Jiho Han
jhan at InfinityInfo.com
Fri Aug 4 10:25:16 PDT 2006
Thanks! That worked great.
________________________________
From: Loring Craymer [mailto:lgcraymer at yahoo.com]
Sent: Wednesday, August 02, 2006 6:36 PM
To: Jiho Han; antlr-interest at antlr.org
Subject: Re: [antlr-interest] String literal containing '(single
quote)?
Change
(~'\'')*
to
(
( '\'' '\'' <file://\\''> )=> '\'' '\''
|
~'\''
)*
--Loring
Jiho Han <jhan at InfinityInfo.com> wrote:
I have a string literal token defined as:
STRINGLITERAL : '\'' (~'\'')* '\'' ;
How can I make it so that it'll accept a doubled-up
single quotes?
i.e.)
"Conan O''Brien"
Thanks
Jiho Han
Senior Software Engineer
Infinity Info Systems
The Sales Technology Experts
Tel: 212.563.4400 x216
Fax: 212.760.0540
jhan at infinityinfo.com
www.infinityinfo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060804/69c115cf/attachment.html
More information about the antlr-interest
mailing list