Passing filled AST to yyparse() caller after successful parse

2005-05-07 Thread Jeannot Langlois
-filled AST, but it seems that this is not the case and the yyparse() return value is only used to return a parse status code. Any ideas or documentation pointers about that? Thanks in advance, -- Jeannot Langlois - Signature Jeannot Langlois B. Sc.  Computer Science / B. Sc.  Informatique Software

Re: Passing filled AST to yyparse() caller after successful parse

2005-05-08 Thread Jeannot Langlois
text sctx; ParserContext pctx; pctx.ast = NULL; yyparse(&sctx, &pctx); if (pctx.ast != NULL) { process AST here... } And that solved my problem. I hope this might help others too... :) Regards, -- Jeannot Langlois - Signature Jeannot Langlois B. Sc.  Computer Science / B. Sc.

Re: Passing filled AST to yyparse() caller after successful parse

2005-05-08 Thread Jeannot Langlois
Jeannot Langlois wrote: In a reentrant GLR parser, how must the yyparse() caller proceed to access the filled AST after a successful parse?  I was expecting yyparse() to return a pointer (whose type could be custom-defined by the user just like the yylex() and yyparse() input