From 59ddf28516c22963f0e4f04d793f28f7d00db401 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sun, 17 Apr 2022 15:55:30 -0400 Subject: use custom yylex() to directly parse command line arguments --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 33e958f..3ebd801 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,5 @@ -expr: expr.c y.tab.c y.tab.h - $(CC) -g -o $@ expr.c y.tab.c -ll -ly - -expr.c: expr.l - lex -t expr.l > expr.c +expr: y.tab.c y.tab.h + $(CC) -g -o $@ y.tab.c -ly y.tab.c y.tab.h: expr.y yacc -d expr.y -- cgit v1.2.1