[antlr-interest] HOWTO: C++ generation: Prefix of generated enum names in ParserTokenType
Francis ANDRE
francis.andre at easynet.fr
Tue Aug 17 06:39:10 PDT 2004
Hi Listeners
I am using ANTLR 2.7.4 for generated parser/lexer in C++. I got name
clashes between tokens defined as enum values in the
MyParserTokenTypes and external class names I have to use.
Is there anyway to specify a prefix for the generated enums (but not
as mangleLiteralprefix) like :
tokens {
ABEND = "ABEND";
}
with a generated ParserTokenTypes as
struct MyParserTokenTypes {
enum {
TOKEN_EOF_ = 1,
TOKEN_ABEND = 4,
....
TIA
Regards
FA
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list