Please study the downloadable examples for using the C output, and it may
also be more reasonable to use the Java output until you are more familiar
with everything.

Jim

> -----Original Message-----
> From: [email protected] [mailto:antlr-interest-
> [email protected]] On Behalf Of L. Rahyen
> Sent: Thursday, December 02, 2010 10:22 AM
> To: [email protected]
> Subject: [antlr-interest] [C Target] Getting segmentation fault in
> isNilNode() from libatnlr3c.so
> 
>       I'm trying to get working (for C target) very simple example from
> "The Definitive ANTLR Reference" book, page 73, "3.3 Evaluating
> Expressions Using an AST Intermediate Form". Of course, for Java target
> everything is fine. I'm trying to write the same thing using C target
> but it looks like I did something wrong because I get segmentation
> fault at this line in Test.cpp:
> 
>   walker->prog(walker); (in isNilNode() from libatnlr3c.so)
> 
>       I'm just getting started with ANTLR. I would really appreciate if
> somebody suggest something that could help me to find where is the
> problem. To reproduce the problem, please use attached files:
> 
>       0) Save all files in the same directory, cd to it and run "chmod
> +x compile"
>       1) Open Expr.g in ANTLRWorks, generate code, then do the same with
> Eval.g
>       2) Run (I'm using GNU C++ compiler): ./compile
>       3) Run: ./Test input


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

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to