m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 6aef5813be1039c525dd4f948d9f657b2d97a1e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
all: bnfc parser interpreter

bnfc:
	bnfc -haskell -p Parser schmim.bnfc

parser: bnfc
	happy -gca Parser/ParSchmim.y
	alex -g Parser/LexSchmim.x

interpreter: parser bnfc
	ghc -dynamic Schmim.hs -o interpreter

clean:
	-rm -rf Parser *.o *.hi interpreter