|
From: | Hans Aberg |
Subject: | Re: adding variable to yyparse function scope |
Date: | Fri, 13 Jul 2007 20:28:19 +0200 |
On 13 Jul 2007, at 16:55, Bob Rossi wrote:
Can I add a variable to the yyparse function scope from within my parsersome how? I want to ensure that the parser is reentrant. I only currently see how to add variables to the top of the file with the prologue rule:http://www.gnu.org/software/bison/manual/html_mono/ bison.html#Prologueand to the end of the file with the epilogue rule:http://www.gnu.org/software/bison/manual/html_mono/ bison.html#Epilogue
Is it %parse-param you are looking for?http://www.gnu.org/software/bison/manual/html_mono/ bison.html#Initial-Action-Decl
Hans Aberg
[Prev in Thread] | Current Thread | [Next in Thread] |