[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: performing actions after parsing
From: |
Hans Aberg |
Subject: |
Re: performing actions after parsing |
Date: |
Wed, 7 Sep 2011 23:58:05 +0200 |
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