summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lexer.l2
-rw-r--r--parser.y1
2 files changed, 3 insertions, 0 deletions
diff --git a/lexer.l b/lexer.l
index 9b1548d..4a593fe 100644
--- a/lexer.l
+++ b/lexer.l
@@ -95,4 +95,6 @@ HEX [0-9a-f]
<INITIAL><<EOF>> { return 0; }
<<EOF>> { BEGIN(INITIAL); return T_EOL; }
+. { return T_UNKNOWN; }
+
%%
diff --git a/parser.y b/parser.y
index ed33aa4..8998c37 100644
--- a/parser.y
+++ b/parser.y
@@ -37,6 +37,7 @@ void yyerror(const char *msg)
%token END 0 "end of file"
+%token T_UNKNOWN
%token T_SPACE
%token T_EOL