From 5dbdc979bd6e005152a194f4ca63604699f568cf Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 2 Oct 2020 14:39:35 +0200 Subject: [PATCH] jitters: parse: error on unknown tokens --- src/parse/scan-jitters.l | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parse/scan-jitters.l b/src/parse/scan-jitters.l index 5de5d3e..76577aa 100644 --- a/src/parse/scan-jitters.l +++ b/src/parse/scan-jitters.l @@ -1,4 +1,6 @@ %{ +#include + #include "parse-jitters.h" #define YY_USER_ACTION \ @@ -42,4 +44,5 @@ int [0-9]+ {blank} { /* Do noting */ } +. { fprintf(stderr, "Unknow character '%s'\n", yytext); return TOK_YYerror; } %%