Re: lookahead and yytext

2010-03-08 Thread Brad
make a difference? -Brad Chris verBurg wrote: Are you strcpy'ing off the value of yytext before getting it from $3? -Chris On Mon, Mar 8, 2010 at 6:10 PM, Brad <mailto:bradda...@comcast.net>> wrote: Doh, sorry about that. The extra single_identifier was left over fro

Re: lookahead and yytext

2010-03-08 Thread Brad
Doh, sorry about that. The extra single_identifier was left over from when I was trying to debug the problem. The original grammar that has the yytext issue didn't have the extra single_identifier. Ignore it. -Brad Chris verBurg wrote: Hey Brad, Do you mean to have "single_

lookahead and yytext

2010-03-08 Thread Brad
Here is a snippet from my grammer that parses a C++-like language. field_declaration: modifiers_opt type IDENTIFIER SEMICOLON { /* stuff */ } ; method_header: modifiers_opt type single_identifier single_identifier LPAREN RPAREN { /* stuff */ } | modifiers_op

Re: $1 of 'whatever' has no declared type

2009-11-21 Thread brad
Thanks! That seems to have fixed the problem. -Brad Joel E. Denny wrote: On Sat, 21 Nov 2009, brad wrote: I have a Bison grammar that I've been working on for a while now, and I never had this problem until I recently upgraded Ubuntu. Now when I try to run the grammar through Bison

$1 of 'whatever' has no declared type

2009-11-21 Thread brad
I have a Bison grammar that I've been working on for a while now, and I never had this problem until I recently upgraded Ubuntu. Now when I try to run the grammar through Bison I get loads of "$1 of 'whatever' has no declared type" errors. Has something recently changed in Bison that breaks old