[antlr-interest] Composed grammars and AST, pb with .h files; and "Bus error" with 'toStringTree'

Jim Idle jimi at temporal-wave.com
Wed Jul 30 10:31:47 PDT 2008


On Wed, 2008-07-30 at 15:55 +0200, Jean-Claude Durand wrote:

> ~/Soft/Ariane-Y/V3Compilateur/ForAI: 
> ~/Soft/Ariane-Y/V3Compilateur/ForAI: java org.antlr.Tool Lex.g
> ANTLR Parser Generator  Version 3.1b2 (May 20, 2008)  1989-2008

This is not the correct verison of the beta 2 jar. It should say:

ANTLR Parser Generator  Version 3.1b2 (July 17, 2008)  1989-2008



> Generating Lex.h
> ~/Soft/Ariane-Y/V3Compilateur/ForAI: java org.antlr.Tool Composed.g
> ANTLR Parser Generator  Version 3.1b2 (May 20, 2008)  1989-2008
> Generating Composed.c
> Generating Composed.h
> Generating Composed_Id.c
> Generating Composed_Id.h
> Generating Composed_Int.c
> Generating Composed_Int.h
> ~/Soft/Ariane-Y/V3Compilateur/ForAI: 
> ~/Soft/Ariane-Y/V3Compilateur/ForAI: c++ -c Composed.c Composed_Id.c
> Composed_Int.c Lex.c main.c -I/usr/include/sys
> -I/usr/local/pkg/antlr-2008-06-26.17/runtime/C/include/ -I.
> ./Composed_Int.h:157: error: expected declaration before '}' token

This is already fixed if your sue the correct beta 2 jar with the C
runtime beta 2. Looks like you are using an earlier snapshot and not the
actual beta 2 ANTLR tool:

ANTLR Parser Generator  Version 3.1b2 (July 17, 2008)  1989-2008


Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080730/17f71005/attachment.html 


More information about the antlr-interest mailing list