Subversion Repositories programming

Rev

Rev 227 | Blame | Compare with Previous | Last modification | View Log | RSS feed

# only works with the Java extension of yacc: 
# byacc/j from http://troi.lincom-asg.com/~rjamison/byacc/

JFLEX  = jflex 
BYACCJ = yaccj -J
JAVAC  = javac
JAVA   = java

# targets:

all: Parser.class

run: Parser.class
        java Parser

build: clean Parser.class

clean:
        rm -f *~ *.class *.java

Parser.class: Yylex.java Parser.java
        $(JAVAC) Parser.java

Yylex.java: jminus.flex
        $(JFLEX) jminus.flex

Parser.java: jminus.y
        $(BYACCJ) jminus.y

test1: all
        $(JAVA) Parser test_programs/test1.jm

test2: all
        $(JAVA) Parser test_programs/test2.jm

test3: all
        $(JAVA) Parser test_programs/test3.jm

test4: all
        $(JAVA) Parser test_programs/test4.jm