Re: Question: bison 2.4.1 breaks binutils/ld/deffilep.y, with fix

2009-04-29 Thread Akim Demaille
Le 28 avr. 09 à 20:55, Danny Backx a écrit : On Tue, 2009-04-28 at 14:46 -0400, Joel E. Denny wrote: On Tue, 28 Apr 2009, Danny Backx wrote: I didn't recognize the significance of this earlier. If the token STACKSIZE is conflicting with a system header in MacOS, perhaps a better fix is to

Re: Multiple Lexer

2009-04-29 Thread Hans Aberg
On 15 Apr 2009, at 14:41, Philip Herron wrote: So my problems is i have a program which it would be nice to have 2 completely separate lexers only one of them needs a yacc grammar file. It seems you have not gotten a reply. Set the name-space prefix by 'bison --name-prefix=name' and 'flex -

Re: Multiple Lexer

2009-04-29 Thread Philip Herron
Hans Aberg wrote: On 15 Apr 2009, at 14:41, Philip Herron wrote: So my problems is i have a program which it would be nice to have 2 completely separate lexers only one of them needs a yacc grammar file. It seems you have not gotten a reply. Set the name-space prefix by 'bison

Re: Reading parser stack

2009-04-29 Thread Mike Aubury
Thats because you've not set up $2 properly.. Normally - you'd have something like : %type str C in the top section of your .y file. along with something like : %union { char str[2000]; } Now - you may be using 'int's etc - so you can add more types

Re: Reading parser stack

2009-04-29 Thread Philip Herron
Mike Aubury wrote: Thats because you've not set up $2 properly.. Normally - you'd have something like : %type str C in the top section of your .y file. along with something like : %union { char str[2000]; } Now - you may be using 'int's etc - so you