start an example compiler for a subset of C

This commit is contained in:
Quentin Carbonneaux 2015-10-02 15:34:38 -04:00
parent ecaad8119f
commit 30eced928c
5 changed files with 2032 additions and 0 deletions

8
minic/Makefile Normal file
View file

@ -0,0 +1,8 @@
CFLAGS=-g -Wall
minic: yacc minic.y
./yacc minic.y
$(CC) $(CFLAGS) -o $@ y.tab.c
clean:
rm -f yacc minic y.*
.PHONY: clean