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

2012-06-27 Thread Akim Demaille
Le 26 juin 2012 à 13:23, Timothy Madden a écrit : Hello Hi! 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 tokens back to an output

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

2012-06-27 Thread Akim Demaille
Le 27 juin 2012 à 08:00, Akim Demaille a écrit : For instance, you have: state 88 1 t_comment_or_whitespace: . T_WHITESPACE 2| . T_COMMENT 3 plain_comment_or_whitespace: . t_comment_or_whitespace 4| .

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 Hans Aberg
On 27 Jun 2012, at 13:18, 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 tokens back to an output stream. If

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

2012-06-27 Thread Hans Aberg
On 27 Jun 2012, at 13:26, Timothy Madden wrote: Either you need to completely change the way you handle the spaces/comments, or you have to use GLR, as Hans suggested. I would hate to find that I have to push all whitespace/comments into the content (semantic value) of the lexer tokens, so