[antlr-interest] Difficulties compiling tree grammar using Antlr 3.1.1 using g++

Jim Idle jimi at temporal-wave.com
Thu Jan 29 09:12:51 PST 2009


Carter Cheng wrote:
> Hi,
>
> Last night I was experimenting with adding semantic analysis passes to my parsing front end and ran into a problem which seems like it may be some sort of bug. Compiling in C using g++ seems to create a bunch of errors w.r.t to void* -> ANTLR3_BASE_TREE* conversion in each and every rule when compiling with g++ and backtracking = true. 
>
> If I use gcc as opposed to g++ the code compiles fine but I suspect this wont work for me in the long term since I plan to sprinkle in some c++ code. Is this a known issue and has it been resolved?
>
> Thanks in advance,
>   
Please check the existing bug list before posting bugs, as per my post 
of a few days ago :-). Also, you should debate heavily about using 
backtrack mode, at least globally, unless this is not a commercial parser.

See:
http://www.antlr.org/jira/browse/ANTLR-356

Which should be fixed this week/next week.

Jim




More information about the antlr-interest mailing list