preliminary work on sea of nodes based intermediate representation.

This commit is contained in:
Lorenzo Torres 2025-12-07 16:48:48 +01:00
parent 989a32fa7b
commit 849e0b6863
13 changed files with 918 additions and 58 deletions

View file

@ -3,8 +3,8 @@
include config.mk
SRC = lc.c utils.c lexer.c parser.c sema.c
HDR = config.def.h utils.h lexer.h parser.h sema.h
SRC = lc.c utils.c lexer.c parser.c sema.c ir.c
HDR = config.def.h utils.h lexer.h parser.h sema.h ir.h
OBJ = ${SRC:.c=.o}
all: options lc
@ -51,5 +51,9 @@ install: all
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/lc\
${DESTDIR}${MANPREFIX}/man1/lc.1
graph: clean all
./lc > graph.dot
dot -Tpdf graph.dot > graph.pdf
zathura ./graph.pdf
.PHONY: all options clean dist install uninstall