@@ -92,7 +92,7 @@ MANIFEST = internal
endif
# lexical analyzer and default options
-LFLAGS = -s
+LFLAGS =
# parser generator and default options
YFLAGS = -d -v
@@ -206,6 +206,11 @@
%}
"--".*$ ; /* comment */
+ /***************************************
+ * DEFAULT RULE
+ ***************************************/
+. { yyerror("Syntax error"); }
+
%%
/**********************************************************************
*
@@ -213,6 +213,11 @@ F [fF]
";" |
"\n" { return ';'; }
+. {
+ fprintf(stderr, "syntax error: '%*s'\n", yyleng, yytext);
+ yyterminate();
+ }
int yywrap(void)