[antlr-interest] Please help me with building AST.

Johannes Luber jaluber at gmx.de
Fri Oct 24 03:46:50 PDT 2008


Arik Ter-Galstyan schrieb:
> Almost a month I am trying to get a working Verilog parser in C++ with AST via ANTLR
> and Verilog grammar file downloaded from ANTLR website. I have tried
it in every
> possible way with different ANTLR versions, different modifications of
grammar file,
> no success. After all I think that it should work by simply adding the
buildAST=true
> option at the top of grammar file. No way. Without buildAST=true
option the generated
> parser works fine, however with the option set the generated parser
even fails to parse
> the verilog files. PLEASE TELL ME WHAT I AM MISSING ?

Do you use ANTLR 2.7.7? buildAST isn't used by ANTLR 3.x.

Johannes
> 
> Thanks
> Arik.
> 
> 
>       
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 



More information about the antlr-interest mailing list