Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (29 sloc) 0.813 kB
JAVA=java
JAVAC=javac
JAVAP=javap
GIT=git
PYTHON=python
PROGRAM=simple
PWD=$(shell pwd)
CLASSPATH="$(PWD)/jasmin.jar:$(PWD)/antlr-3.3-complete.jar:$(PWD)/src:$(PWD)"
export CLASSPATH
build:
$(JAVA) -jar antlr-3.3-complete.jar -make g-files/*.g -fo src/SELMA/
CLASSPATH="antlr-3.3-complete.jar" $(JAVAC) src/SELMA/*.java
run: build
selma $(PROGRAM).SELMA
astNC: build
$(JAVA) SELMA.SELMA -no_checker -ast $(PROGRAM).SELMA
tests:
$(PYTHON) test.py
$(JAVA) SELMA.SELMA -code_generator test/test_pasen.selma > test/test_pasen.jasmin
runonly:
$(JAVA) SELMA.SELMA -code_generator $(PROGRAM).SELMA > $(PROGRAM).jasmin
$(JAVA) -jar jasmin.jar -g $(PROGRAM).jasmin
$(JAVA) -classpath . Main
ast: build
$(JAVA) SELMA.SELMA -ast $(PROGRAM).SELMA
debug: build
$(JAVAP) -v Main
clean:
$(GIT) clean -X -f
Jump to Line
Something went wrong with that request. Please try again.