[Top][All Lists]
[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.
- problem compiling bison with gcc 3.0.5, Martin Trautmann, 2002/03/01
- Re: problem compiling bison with gcc 3.0.5, Martin Trautmann, 2002/03/02
- Re: problem compiling bison with gcc 3.0.5, Hans Aberg, 2002/03/02
- Re: problem compiling bison with gcc 3.0.5, Anthony DeRobertis, 2002/03/03
- Re: problem compiling bison with gcc 3.0.5, Martin Trautmann, 2002/03/03
Re: problem compiling bison with gcc 3.0.5, Akim Demaille, 2002/03/04