jitters: parse: error on unknown tokens

This commit is contained in:
Bruno BELANYI 2020-10-02 14:39:35 +02:00
parent c9628162bd
commit 5dbdc979bd
1 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,6 @@
%{
#include <stdio.h>
#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; }
%%