[antlr-interest] literal apostrophe

Mark Volkmann r.mark.volkmann at gmail.com
Sun Dec 9 16:26:10 PST 2007


How do you specify a literal apostrophe in a grammar. For example, I
want to parse something like this.

f'(x)

I have a rule like this.

function: name '\'' '(' variable ')'

I don't think I'm specifying the literal apostrophe correctly.

-- 
R. Mark Volkmann
Object Computing, Inc.


More information about the antlr-interest mailing list