bison-2.3 build error: src/bison not found

2010-10-13 Thread Timothy Madden
he .am files in bison-2.3 distribution. Can anyone please help ? What am I doing wrong ? Thank you, Timothy Madden ___ help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Non-unions value type with C++ paraser

2012-06-19 Thread Timothy Madden
Hello I would like to use std::string as the only semantic value type in my C++ parser. Is there a way to do that without redefining YYSTYPE (which the C++ interface says it should not be used) ? Thank you, Timothy Madden ___ help-bison@gnu.org

Re: How to read an understand the bison report file ?

2012-06-27 Thread Timothy Madden
On 06/26/2012 11:58 PM, Hans Aberg wrote: On 26 Jun 2012, at 13:23, Timothy Madden wrote: I wrote a grammar file for an approximation of the php language (with the purpose of adding braces to single-statements under if, for, while, but that is not included yet), that simply outputs the found

Re: How to read an understand the bison report file ?

2012-06-27 Thread Timothy Madden
, so the grammar does not get to see it. On the other hand, I could not get GLR with C++ yet... Thank you, Timothy Madden ___ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

How to use different yylex ?

2012-06-28 Thread Timothy Madden
class yyFlexLexer ? Other than using #define yylex, which I think is not very friendly ? Thank you, Timothy Madden ___ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Re: How to read and understand the bison report file ?

2012-06-28 Thread Timothy Madden
On 06/28/2012 04:55 PM, Akim Demaille wrote: Le 28 juin 2012 à 14:51, Timothy Madden a écrit : On 06/28/2012 10:09 AM, Akim Demaille wrote: On the other hand, I could not get GLR with C++ yet… I have it working, but it's based on horrible hacks. And I really mean horrible. If P

Re: How to use different yylex ?

2012-06-28 Thread Timothy Madden
On 06/28/2012 04:56 PM, Akim Demaille wrote: Le 28 juin 2012 à 15:44, Timothy Madden a écrit : Hello All symbols generated by bison atr included in the yy:: namespace (in the yy::parser class actually), except the yylex function. Is there a way to change the name for yylex function ? So it

Re: What are the benefits to migrate from Bison++ to Bison

2012-06-28 Thread Timothy Madden
rent statements, depending on the following lines of code. Have fun, Timothy Madden ___ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Re: How to read an understand the bison report file ?

2012-06-28 Thread Timothy Madden
real php parser (from php source code) does not have a %glr directive, but it does have %expect 3, and I know php has the dangling elseif/else problem. Can a language with this issue be written in a LALR(1) grammar ? Thank you, Timothy Madden ___ he

Re: What are the benefits to migrate from Bison++ to Bison

2012-06-29 Thread Timothy Madden
On 06/29/2012 10:09 AM, Akim Demaille wrote: Le 28 juin 2012 à 17:28, Timothy Madden a écrit : First, it looks like you want to migrate from old bison to the newer bison++. Why do you qualify Bison as old, and Bison++ as newer? The latest release of Bison for instance is about one month