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:
942 bytes
|
Line | |
---|
1 | <project name="interpreter" default="run">
|
---|
2 |
|
---|
3 | <taskdef classname="JFlex.anttask.JFlexTask" name="jflex" />
|
---|
4 | <taskdef classname="java_cup.AntTask" name="cup" />
|
---|
5 |
|
---|
6 | <target name="build" depends="realclean,compile" />
|
---|
7 |
|
---|
8 | <target name="run" depends="compile">
|
---|
9 | <java classname="Main"> <arg line="example.as"/> </java>
|
---|
10 | </target>
|
---|
11 |
|
---|
12 | <target name="compile" depends="jflex,cup">
|
---|
13 | <javac srcdir="." destdir="." />
|
---|
14 | </target>
|
---|
15 |
|
---|
16 | <target name="jflex">
|
---|
17 | <jflex file="scanner.flex" />
|
---|
18 | </target>
|
---|
19 |
|
---|
20 | <target name="cup">
|
---|
21 | <cup file="parser.cup" interface="yes" dir="."/>
|
---|
22 | </target>
|
---|
23 |
|
---|
24 | <target name="genclean">
|
---|
25 | <delete file="Yylex.java"/>
|
---|
26 | <delete file="sym.java" />
|
---|
27 | <delete file="parser.java" />
|
---|
28 | </target>
|
---|
29 |
|
---|
30 | <target name="clean">
|
---|
31 | <delete>
|
---|
32 | <fileset dir="." includes="**/*~"/>
|
---|
33 | <fileset dir="." includes="**/*.class"/>
|
---|
34 | </delete>
|
---|
35 | </target>
|
---|
36 |
|
---|
37 | <target name="realclean" depends="clean,genclean" />
|
---|
38 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.