[antlr-interest] Lexer.java output in wrong directory

Hilco Wijbenga hilco.wijbenga at gmail.com
Sun Sep 13 15:53:31 PDT 2009


2009/9/13 Martijn Reuvers <martijn.reuvers at gmail.com>:
<snip/>
> Notice the tokenVocab in the parser, that matches the lexer's file
> name without extension (in fact its token file name). And both lexer
> and parser grammars need to define their package for it to be
> generated in the files. The location of the grammar files determines
> their output location (you can see in the tree above as I did a maven
> run).

Yep, that works.

So how and when would I use import then?


More information about the antlr-interest mailing list