[antlr-interest] Writing Token Vocab from a combined lexer/parser

Jim Idle jimi at temporal-wave.com
Tue Dec 16 15:34:23 PST 2008


On Tue, 16 Dec 2008 15:29:01 -0800, Matthew E. Boyce  
<matthew.e.boyce at gmail.com> wrote:

> I've defined a lexer and parser in the same file, which doesn't by
> default seem to produce the .tokens file I would expect.  The list
> includes a number of T__*=* tokens, the lexer names I'd expect, and
> numbers for the literals defined in the parser.  This is all well and
> good, but it seems that nowhere in the file do the tokens declared in
> my tokens section appear.  Which causes obvious problems for my tree
> parser... so my question is what am I missing... how do I force these
> tokens which are being used for AST creation to be written?


You will probably need to post the grammars as it works as you expect it  
to.

Jim

>
> ~MEB
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:  
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the antlr-interest mailing list