Last change
on this file since 25584 was 25584, checked in by davidb, 12 years ago |
Initial cut an a text edit area for GLI that supports color syntax highlighting
|
File size:
420 bytes
|
Line | |
---|
1 | # only works with the Java extension of yacc:
|
---|
2 | # byacc/j from http://troi.lincom-asg.com/~rjamison/byacc/
|
---|
3 |
|
---|
4 | JFLEX = jflex
|
---|
5 | BYACCJ = yacc -J
|
---|
6 | JAVAC = javac
|
---|
7 |
|
---|
8 | # targets:
|
---|
9 |
|
---|
10 | all: Parser.class
|
---|
11 |
|
---|
12 | run: Parser.class
|
---|
13 | java Parser
|
---|
14 |
|
---|
15 | build: clean Parser.class
|
---|
16 |
|
---|
17 | clean:
|
---|
18 | rm -f *~ *.class *.java
|
---|
19 |
|
---|
20 | Parser.class: Yylex.java Parser.java
|
---|
21 | $(JAVAC) Parser.java
|
---|
22 |
|
---|
23 | Yylex.java: calc.flex
|
---|
24 | $(JFLEX) calc.flex
|
---|
25 |
|
---|
26 | Parser.java: calc.y
|
---|
27 | $(BYACCJ) calc.y
|
---|
Note:
See
TracBrowser
for help on using the repository browser.