all:
	ocamllex scanner.mll
	ocamlyacc parser.mly
	ocamlc -c ast.ml
	ocamlc -c parser.mli
	ocamlc -c scanner.ml
	ocamlc -c parser.ml
	ocamlc -c sast.ml
	ocamlc -c translator.ml
	ocamlc -c typecheck.ml
	ocamlc -c ec.ml
	ocamlc -o ec.exe ast.cmo translator.cmo parser.cmo scanner.cmo ec.cmo

clean:
	rm -f parser.ml parser.mli scanner.ml \
	*.cmo *.cmi *.out *.diff *.output *.parsed
