[antlr-interest] Grammar Inheritance - can this apply to lexers?
cgodfrey86
cgodfrey at epnet.com
Mon May 19 09:13:38 PDT 2003
Hello,
Can grammar inheritance apply to lexers?
class UserLexer extends Lexer;
....
class LiteralLexer extends UserLexer;
....
If have definitions such as this in the same file, I get error
panic: You may only have one lexer per grammar file: class
LiteralLexer
If I separate into 2 files, the second file does not recognize the
first lexer class- is there a way to reference the class in the
grammar file?
error: grammar UserLexer not defined
Thanks In Advance
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list