summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-01-18 13:09:13 -0600
committersanine <sanine.not@pm.me>2023-01-18 13:09:13 -0600
commit9e19578675d8ad6a7c252e884b26e61ab9159b4a (patch)
treec3526d9724b152834b6e977812c3c297788a2519
parent82f47550fe3327cce6f2e0e1bf62e81d9ebcf90c (diff)
working reentrant parser
-rw-r--r--yy/kalmia.y2
-rw-r--r--yy/makefile2
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