This commit is contained in:
2023-05-04 11:21:22 -04:00
commit a409fac4e8
10 changed files with 297 additions and 0 deletions

19
src/Makefile Normal file
View File

@@ -0,0 +1,19 @@
CC = /bin/cc
LEX = /bin/lex
RM = /bin/rm
all:
@echo "Run 'make parser' to build the parser, or 'make lexer' to build the lexer."
parser:
$(CC) parse.c -o parser
lexer:
$(LEX) lexer.l
$(CC) lex.yy.c -lfl -o lexer
clean-parser:
$(RM) parser
clean-lexer:
$(RM) lexer lex.yy.c