From 9e19578675d8ad6a7c252e884b26e61ab9159b4a Mon Sep 17 00:00:00 2001 From: sanine Date: Wed, 18 Jan 2023 13:09:13 -0600 Subject: working reentrant parser --- yy/kalmia.y | 2 +- yy/makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yy/kalmia.y b/yy/kalmia.y index 8afc101..78bf895 100644 --- a/yy/kalmia.y +++ b/yy/kalmia.y @@ -89,7 +89,7 @@ doubles: %% -int yyerror(YYLTYPE *yyllocp, yyscan_t unused, const char *msg); +int yyerror(YYLTYPE *yyllocp, yyscan_t unused, const char *msg) { fprintf( stderr, "[%d:%d]: %s\n", diff --git a/yy/makefile b/yy/makefile index 5f33c4f..5c9ce5f 100644 --- a/yy/makefile +++ b/yy/makefile @@ -4,7 +4,7 @@ kalmia.tab.c: kalmia.y bison -o "$@" --header=kalmia.tab.h kalmia.y kalmia.lex.c: kalmia.l - flex -o "$@" --header-file "kalmia.lex.h" kalmia.l + flex -o "$@" --header-file="kalmia.lex.h" kalmia.l kalmia: kalmia.tab.c kalmia.lex.c main.c kalmia.h gcc -o kalmia main.c kalmia.tab.c kalmia.lex.c -lfl -- cgit v1.2.1