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

View file

@ -1,4 +1,6 @@
%{ %{
#include <stdio.h>
#include "parse-jitters.h" #include "parse-jitters.h"
#define YY_USER_ACTION \ #define YY_USER_ACTION \
@ -42,4 +44,5 @@ int [0-9]+
{blank} { /* Do noting */ } {blank} { /* Do noting */ }
. { fprintf(stderr, "Unknow character '%s'\n", yytext); return TOK_YYerror; }
%% %%