Re: initial-action question

2008-02-12 Thread lfinsto1
Aaron Jackson wrote: > Thanks for the response. You're welcome. > On Feb 11, 2008, at 5:03 AM, [EMAIL PROTECTED] wrote: > >> To the best of my knowledge, you would need to modify the skeleton file. [...] > I wanted to avoid this since I want my .y code to be portable. It would be. You'd just

Re: initial-action question

2008-02-11 Thread Joel E. Denny
On Mon, 11 Feb 2008, Aaron Jackson wrote: > I would like to declare some variables that are local to yyparse. > If I use %parse-param{variables_t variables;}, > where variables_t is a structure containing x,y,z, I get what I want, but > since I don't need x,y,z after yyparse returns, this seems l

Re: initial-action question

2008-02-11 Thread Aaron Jackson
Thanks for the response. On Feb 11, 2008, at 5:03 AM, [EMAIL PROTECTED] wrote: I would like to declare some variables that are local to yyparse. To the best of my knowledge, you would need to modify the skeleton file. When I wanted to do this, I determined that it was not possible otherwi

Re: initial-action question

2008-02-11 Thread Hans Aberg
On 11 Feb 2008, at 09:17, Aaron Jackson wrote: I would like to declare some variables that are local to yyparse. I am building a linked list of structures, and I need to make sure I have values for all the structure members before I add a new node to the list. Since I wrote the parser to

Re: initial-action question

2008-02-11 Thread lfinsto1
> I would like to declare some variables that are local to yyparse. To the best of my knowledge, you would need to modify the skeleton file. When I wanted to do this, I determined that it was not possible otherwise. I may be wrong, but I don't think this has changed with more recent versions. >

initial-action question

2008-02-11 Thread Aaron Jackson
I would like to declare some variables that are local to yyparse. I am building a linked list of structures, and I need to make sure I have values for all the structure members before I add a new node to the list. Since I wrote the parser to be a pure parser, global variables, are not an