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 Hi Hans (and Hi all), Just a few minutes after I posted the question to the mailing list, I found what I was looking for. It works. Apparently, when using a reentrant GLR parser, I need to define an (additional) %parse-param { ... } so I can pass the resulting AST pointer to yyparse(),
I am aware of this one, but I was not sure if it resulted in a pure parser. There was a discussion here or in Bug-Bison on some problems with %glr, but I do not remember exactly it was. -- Error recovery perhaps.
--
Hans Aberg
_______________________________________________ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison