help-bison
[Top][All Lists]
Advanced

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

Re: Retrieving the last "$$"


From: Joel E. Denny
Subject: Re: Retrieving the last "$$"
Date: Thu, 23 Jul 2009 11:53:41 -0400 (EDT)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

On Thu, 23 Jul 2009, Filip van der Meeren wrote:

> I am using bisons yypush_parse to evaluate my text.

Given that Bison's push parsing feature is relatively new, we're eager to 
find out what you're using it for.  Is it working well for you so far?

> But when the parser has finished parsing, I need to get a hold on the last
> "$$".

By "the last $$", do you mean the semantic value of the start symbol?  
One way is to add a new start symbol and rule:

  start_new: start_old { /* access $1 here */ } ;

> Do you have any idea how to retrieve the $$ when using bison 2.4.1 with the
> %define api.pure, %define api.push_pull "push" defined ?

I can't think of any difference between push and pull parsing for this 
issue.




reply via email to

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