[antlr-interest] AST.getType() Question
Arnar Birgisson
arnarb at oddi.is
Fri Oct 17 03:09:32 PDT 2003
Both Parser and TreeParser have a function "string getTokenName(int)".
You should be able to use that.
Arnar
-----Original Message-----
From: Nico [mailto:nico123 at adinet.com.uy]
Sent: 17. október 2003 01:23
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] AST.getType() Question
Hi all.
AST.getType() returns an int according to the created tokenTypes.
Is there any way to return the String Type Name of the Token, instead of
the representing int?
I mean, I want the String name of the Token Type, not the Name of the
node.
regards
Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/> Terms of Service.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20031017/a707e004/attachment.html
More information about the antlr-interest
mailing list