Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/build.xml')
-rw-r--r--xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/build.xml49
1 files changed, 49 insertions, 0 deletions
diff --git a/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/build.xml b/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/build.xml
new file mode 100644
index 0000000000..99a4603a95
--- /dev/null
+++ b/xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/build.xml
@@ -0,0 +1,49 @@
+<!--
+ Copyright (c) 2009 IBM Corporation and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+ IBM Corporation - initial API and implementation
+-->
+
+<project name="XLC Parsers" default="c" basedir=".">
+
+ <import file="../../org.eclipse.cdt.core.lrparser/grammar/generate.xml"/>
+
+ <property name="c_location" value="../parser/org/eclipse/cdt/internal/core/lrparser/xlc/c"/>
+ <property name="cpp_location" value="../parser/org/eclipse/cdt/internal/core/lrparser/xlc/cpp"/>
+
+
+ <target name="c">
+ <antcall target="generate_c">
+ <param name="grammar_name" value="XlcCParser"/>
+ </antcall>
+ </target>
+
+ <target name="cpp">
+ <antcall target="generate_cpp">
+ <param name="grammar_name" value="XlcCPPParser"/>
+ </antcall>
+ </target>
+
+
+ <target name="generate_c">
+ <antcall target="generate">
+ <param name="grammar_dir" value="xlc"/>
+ <param name="output_dir" value="${c_location}"/>
+ <param name="grammar_name" value="${grammar_name}"/>
+ </antcall>
+ </target>
+
+ <target name="generate_cpp">
+ <antcall target="generate">
+ <param name="grammar_dir" value="xlc"/>
+ <param name="output_dir" value="${cpp_location}"/>
+ <param name="grammar_name" value="${grammar_name}"/>
+ </antcall>
+ </target>
+
+</project> \ No newline at end of file

Back to the top