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 parameters) to the properly-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?
I am not sure the %glr parser currently works in pure mode. Let's cc Paul Hilfinger, who wrote it, to see if he can let us know.
--
Hans Aberg
_______________________________________________ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison