Well, it turns out it was a missing YYSTYPE definition from the parser file. Thus defaulting to int and having yystate accidentally overwritten on updating yylval. A difficult bug.

Regards,
    Panayiotis

On 07/21/2010 09:48 PM, Panayiotis Karabassis wrote:
Hi! I am getting an unexpected ( by me :-) ) syntax error due to the parser reaching the end of file. My input is simply the string "3". Plus the lexer emits a token V_expression at the start of parsing.

If anyone could put some time in helping me solve this I'd be very grateful.

Many thanks in advance!
    Panayiotis


_______________________________________________
help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison

Reply via email to