bison 2.1 generated code always returns error

2008-10-05 Thread Jim Michaels
bison 2.1 generated code always returns an error: 1. parse failed: invalid input. this is always on the last token at end of file where it matches "EOF" (T_EOF). it does the same thing whether I return 0 if I find the token instead of returning T_EOF from the lexer (flex), or if I just return T_EO

Re: bison 2.1 generated code always returns error

2008-10-05 Thread Joel E. Denny
On Sat, 4 Oct 2008, Jim Michaels wrote: > bison 2.1 generated code always returns an error: 1. > parse failed: invalid input. > this is always on the last token at end of file where it matches "EOF" > (T_EOF). > it does the same thing whether I return 0 if I find the token instead of > returning