help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding variable to yyparse function scope


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 parser
some 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#Prologue
and 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]