-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
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.
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