[antlr-interest] How do you Output a String Literal?
titech at metaorb.com
titech at metaorb.com
Fri Aug 22 15:09:17 PDT 2008
I'm trying to output a string literal based on an imaginary token in an AST.
If I use "$TOKEN.text", I get the expected string literal for tokens used in the parser rule, but for imaginary tokens, I just get the token (e.g. all caps).
Is there a way to get the string literal (or the matched text) back from the token?
Thanks,
--Mike
Mike Allbright
DLP Products
Texas Instruments,
Inc.
More information about the antlr-interest
mailing list