[antlr-interest] String literal containing '(single quote)?

Jiho Han jhan at InfinityInfo.com
Wed Aug 2 15:23:56 PDT 2006


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 <http://www.infinityinfo.com/> 




More information about the antlr-interest mailing list