Branch: Tag:

1999-07-19

1999-07-19 00:32:41 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

better error message (IMHO)

Rev: src/language.yacc:1.119

181:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.118 1999/06/19 22:10:07 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.119 1999/07/19 00:32:41 hubbe Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
2038:    | F_DO    { yyerror("do is a reserved word."); }    | F_ELSE -  { yyerror("else is a reserved word."); } +  { yyerror("else without if."); }    | F_RETURN    { yyerror("return is a reserved word."); }    | F_CONSTANT