forked from JavaTX/JavaCompilerCore
43 lines
1.4 KiB
XML
43 lines
1.4 KiB
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<project name="JavaCompiler.buildParser" default="JavaParser" basedir=".">
|
||
|
|
||
|
<property name="ParserSrcDir" value="./../src/mycompiler/myparser/"/>
|
||
|
|
||
|
<target name ="JavaParser" depends="JavaLexer" description="Create the file JavaParser.java">
|
||
|
|
||
|
<exec executable="${basedir}/RunJayDarwin.sh" failonerror="true"/>
|
||
|
<!--
|
||
|
<echo message="Hallo Welt: ${ParserSrcDir}JavaParser.jay"/>
|
||
|
<exec executable="ipconfig" failonerror="true">
|
||
|
<arg value="/all"/>
|
||
|
</exec>
|
||
|
-->
|
||
|
|
||
|
<!--
|
||
|
<exec executable="${basedir}/jay.cygwin32" dir="${ParserSrcDir}" failonerror="true">
|
||
|
<arg value="-v ${ParserSrcDir}JavaParser.jay <skeleton> ${ParserSrcDir}JavaParser.java"/>
|
||
|
|
||
|
<arg value="-v"/>
|
||
|
<arg value="${ParserSrcDir}JavaParser.jay"/>
|
||
|
<arg value="<"/>
|
||
|
<arg value="skeleton"/>
|
||
|
<arg value=">"/>
|
||
|
<arg value="${ParserSrcDir}JavaParser.java"/>
|
||
|
</exec>
|
||
|
-->
|
||
|
</target>
|
||
|
|
||
|
<target name ="JavaLexer" depends="Lexer" description="Move the file JavaParser.lex.java to JavaParser.java">
|
||
|
<move file="${ParserSrcDir}JavaLexer.lex.java" tofile="${ParserSrcDir}JavaLexer.java" failonerror="true"/>
|
||
|
</target>
|
||
|
|
||
|
<target name ="Lexer" description="Create the file JavaLexer.lex.java">
|
||
|
<java classname="JLex.Main"
|
||
|
classpath="${basedir}/JLex_neu.jar"
|
||
|
fork="true"
|
||
|
failonerror="true">
|
||
|
<arg value="${ParserSrcDir}JavaLexer.lex"/>
|
||
|
</java>
|
||
|
</target>
|
||
|
|
||
|
</project>
|