Lexxer cleanup

This commit is contained in:
Scarlett
2025-04-25 15:04:20 -04:00
parent 2c712ed221
commit 49a0330d08
3 changed files with 66 additions and 65 deletions

View File

@ -10,8 +10,8 @@ LEX := src/lexicalStructure.lex
YACC := src/grammar.y
EXE := alpha
OBJS := tmp/runner.o tmp/symbol_table.o tmp/grammar.tab.o tmp/lex.yy.o tmp/intermediate_code.o
# tmp/intermediate_code.o codegen.o
OBJS := tmp/runner.o tmp/symbol_table.o tmp/grammar.tab.o tmp/lex.yy.o
# tmp/intermediate_code.o codegen.o <--- Add to line above
TESTS-S1 := $(wildcard tests/sprint1/test/*.alpha)
TESTS-S2 := $(wildcard tests/sprint2/test/*.alpha)
@ -55,8 +55,10 @@ tmp/lex.yy.o: tmp/lex.yy.c
tmp/symbol_table.o: src/symbol_table.c src/symbol_table.h
$(CC) $(CFLAGS) -c src/symbol_table.c -o tmp/symbol_table.o
tmp/intermediate_code.o: src/intermediate_code.c src/intermediate_code.h
$(CC) $(CFLAGS) -c src/intermediate_code.c -o tmp/intermediate_code.o
# Uncomment rules when ready
# tmp/intermediate_code.o: src/intermediate_code.c src/intermediate_code.h
# $(CC) $(CFLAGS) -c src/intermediate_code.c -o tmp/intermediate_code.o
# tmp/codegen.o: src/codegen.c src/codegen.h
# $(CC) $(CFLAGS) -c src/codegen.c -o tmp/codegen.o