[antlr-interest] No lexer generated

Juancarlo Añez apalala at gmail.com
Thu Nov 15 10:03:30 PST 2012


And then again, NO. That is not the desired behavior. ANTLR should compile
the imported grammars without mentioning them on the command line.


On Thu, Nov 15, 2012 at 1:04 PM, Juancarlo Añez <apalala at gmail.com> wrote:

> OK. For some reason, ANTLR wants me to name all grammar files in the
> compilation, when it didin't for other grammars.
>
> Go figure!
>
>
> On Thu, Nov 15, 2012 at 12:38 PM, Juancarlo Añez <apalala at gmail.com>wrote:
>
>> I have a grammar that starts like this:
>>
>> grammar COBOL;
>> options {
>>     language  = Python;
>>     backtrack = false;
>>     output    = AST;
>>     ASTLabelType=CommonTree;
>> }
>>
>> import Tokens, Lexical;
>>
>>
>> And no lexer or code for Tokens or Lexical is generated.
>>
>> I have the exact same setup for another grammar, and it works.
>>
>> What can be happening this time?
>>
>> --
>> Juancarlo *Añez*
>>
>
>
>
> --
> Juancarlo *Añez*
>



-- 
Juancarlo *Añez*


More information about the antlr-interest mailing list