On 26 May 2011, at 07:35, Sergey Klimkin wrote:
> I guess it might be helpful, I can not claim yet : )
> there is %initial-action declaration and the %final-action may help,
> but rhs symbols will not be discarded.
>
> %initial-action
> {
> try {
> }
>
> %final-action
> {
> }
> catch (std::exception &)
> {
> yyerror(...);
> YYABORT;
> }
> }
This may not work, because I think it may check the braces of the code part. So
some tweaking might be required. You might get back to the bug-bison list to
get it integrated into the skeleton file, if some of the Bison developers are
interested. I think this try-catch issue has been overlooked.
> and I have no idea how to work with M4: (
Just compare the skeleton file with the output, to see what macros are
translated. There is a M4 manual, too.
Hans
_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison