[antlr-interest] String literal containing '(single quote)?
Loring Craymer
lgcraymer at yahoo.com
Wed Aug 2 15:35:54 PDT 2006
Change
(~'\'')*
to
(
( '\'' '\'' )=> '\'' '\''
|
~'\''
)*
--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/20060802/5ad2966f/attachment.html
More information about the antlr-interest
mailing list