Ambiguity involving two parse stacks reducing on the same rule

2005-03-09 Thread Derek M Jones
All, I had misunderstood how %merge worked and was trying to solve a problem by using %dprec and grammar rewrites. Frank Heckenbach came up with the following grammar which highlights the issue very well (I had assumed that %merge would only be applicable when two different grammar rules were invo

Re: Question about "Conditions for Using Bison" in Bison 2.0 documentation

2005-03-09 Thread Paul Hilfinger
In fact, this issue did get discussed when the GLR skeleton got introduced, and the language (or lack of it) is, AIR, deliberate on the part of the lead maintainers at the time. On consideration, I would prefer that the same terms apply to all skeletons as now apply to the C LALR(1) skeleton. I

Re: Question about "Conditions for Using Bison" in Bison 2.0 documentation

2005-03-09 Thread Hans Aberg
This is most likely an error: The other skeleton files did not exist at the time that stuff was written. Akim Demaille is resposnible for the C++ file and Paul Hilfinger for the GLR file. They probably forgot to insert the correct copyright. If so, this is a Bug-Bison issue. At 14:28 +0100 2005/03

Re: ERROR: version file does not exist or are not readable

2005-03-09 Thread Hans Aberg
You must provide more info about when and how the error occurs (version, installation, etc.): I can't find that error string in Bison 2.0 nor in the M4 that Bison uses. If you use an older Bison version, try to update, as older versions are not supported. And bugs should be reported to the Bug-Biso

Passing parameter to `merge' function

2005-03-09 Thread Laurence Finston
I deleted the message asking about passing a parameter to the `merge' function, so I can't reply directly. There may be a better way of doing this, but a workaround might be to use thread-specific information, assuming each call to `yyparse()' has its own parameter object and each parameter object

Question about "Conditions for Using Bison" in Bison 2.0 documentation

2005-03-09 Thread Michel Rosien
Hello,   I have read the "Conditions for Using Bison" on page 3 of the Bison 2.0 documentation. The first lines say:   As of Bison version 1.24, we have changed the distribution terms for yyparse to permit using Bison's output in nonfree programs when Bison is generating C code for LALR(1) p

Passing additional parameters to %merge function

2005-03-09 Thread Michel Rosien
Hello,   I am using the %parse-param option of bison to pass additional parameters to the parse function. I pass a pointer to an instance of a class which holds the parser environment (because i'm using %pure-parser)   I am also using the %glr-parser option and I use %merge to merge the par