[antlr-interest] separating lexer and parser rules
Johannes Luber
jaluber at gmx.de
Fri Dec 21 10:05:42 PST 2007
Mark Volkmann schrieb:
> Thanks! Now I need to decide what to name the grammar files so that
> reasonable class names are generated. I'd love to name my grammar
> files something like MathLexer.g, MathParser.g and MathTree.g. If I do
> that though then my generated Lexer class will be MathLexerLexer.java
> and my generated Parser class will be MathParserParser.java. Is there
> a common convention for grammar file names?
3.1 won't add Lexer or Parser to single grammars - until then you have
to live with it.
Johannes
More information about the antlr-interest
mailing list