[antlr-interest] Parsing a quoted string
John D. Mitchell
johnm-antlr at non.net
Sun Jan 12 18:25:57 PST 2003
>>>>> "xadeck" == xadeck <decoret at graphics lcs mit edu> <decoret at graphics.lcs.mit.edu> writes:
> 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"
Check out the various examples such as the C lexer.
John
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list