mhulden / foma

Automatically exported from code.google.com/p/foma

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yyerror() parameters and consequent syntax error prints

kryde opened this issue · comments

commented

With current zipped master built on not particularly recent Debian i386, a syntax error on input prints apparent junk instead of the message (where I expected say "syntax error"). Sample input to provoke:

def blah 123;
regex ||;

I think regex.l defines yyerror() with 3 args (into generated lex.yy.c), but the %parse-param's in regex.y causes it to be called with 5 args (from generated regex.c).

@kryde This issue has been fixed in #103