Subset of C language with tree interpreter and bytecode compiler + VM.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 rivejä
451 B

CFLAGS = -g
CPPFLAGS = -I/opt/local/include
LDFLAGS = -L/opt/local/lib
LDLIBS = -lgc
all : main
%.c : %.leg
leg -o $@ $<
% : %.c
cc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(LDLIBS) -o $@ $<
test : main
./main -xvv test.txt
demo : main
for i in demofiles/*.c; do echo $$i; ./main -x < $$i; done
demov : main
for i in demofiles/*.c; do echo $$i; ./main -x -vv < $$i; done
spotless : clean
rm -rf *~ *.dSYM
clean : .FORCE
rm -f main
.FORCE :