help-bison
[Top][All Lists]
Advanced

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

Re: problem compiling bison with gcc 3.0.5


From: Akim Demaille
Subject: Re: problem compiling bison with gcc 3.0.5
Date: 02 Mar 2002 13:33:47 +0100
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

>>>>> "Hans" == Hans Aberg <address@hidden> writes:

Hans> At 10:39 +0100 2002/03/02, Martin Trautmann wrote: [Replies,
Hans> please cc help-bison.]

>> BTW: if anyone likes to answer me some basic questions + Why can't
>> I %expect reduce/reduce conflicts?

Hans> If you only figure out an automated way to select which rule to
Hans> reduce.  What do you prefer? (One can take say the longer rule,
Hans> but what you do if the rules are of the same length?)

The algorithm in such a case is simply reducing the first rule (in the
order of appearance).


>> + Are there any real C++ versions of bison?

Hans> Yes, I made one. :-) There is something called bison++ too I
Hans> think.

It's old and should be completely forgotten.

>> This would be nice: * the whole parser in a class

Hans> I didn't do that part, but I figure the C++ support that Bison
Hans> will have in about in a month (unless the developers doing that
Hans> part went on vacation :-) ) will have that.

There is already a functional prototype in the main CVS branch.  Just
check it out.  Basically, you are on your own, there is no
documentation.  Just pass -S bison.c++.  And be sure to have GNU M4.

>> * passing some objects to the yyparse() function

Hans> Check YYPARSE_PARAM, Bison manual sec 4.2.4.

We are looking for elegant means to add members, not just one.  But it
is not clear whether it's easily feasible, nor desirable.



reply via email to

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