On 5 Sep 2011, at 04:22, Andrew Hume wrote: > bison supports performing stuff before parsing via the %initial-action > directive. > is there a corresponding hook for performing stuff after parsing? > > to me, this is a more necessary hook, as you can do the initial-action stuff > via the grammar, but in the presence of errors and YYABORT, i don't > see how you can do post-processing stuff via the grammar.
It is perhaps Akim that should answer that. There was a similar request some time ago about being able to throw C++ exceptions, and catch within the parser. Perhaps this might be a similar in a C context. Hans _______________________________________________ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison