[antlr-interest] Parsing a quoted string
xadeck <decoret at graphics.lcs.mit.edu>
decoret at graphics.lcs.mit.edu
Sat Jan 11 21:25:05 PST 2003
I am trying to parse quoted atring, that is "lfkgslfkhg"
My basic rule is:
STRING: '"' ~'"'+ '"'
How can I do to allow protected quote inside a STRING, that is parse
values like "Joe \"Kid\" Banana"?
And then how can I also handle protected \, that is parse values like
"welcome to my \\home"
Thanks for any hint.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list