[antlr-interest] Why is getTokenNames() defined in BaseRecognizer?

Dennis Benzinger Dennis.Benzinger at gmx.net
Mon Mar 30 08:24:44 PDT 2009


Hi!

Why is getTokenNames() defined in BaseRecognizer if it only returns a
non null value in the Parser? Wouldn't it be better if were only defined
in Parser?

Are there "historical" reasons for this or will getTokenNames() return a
non null value in the lexer in the future too?


Dennis Benzinger


More information about the antlr-interest mailing list