2009-04-17 18:52:09 +00:00
|
|
|
<!--
|
2010-05-12 17:19:17 +00:00
|
|
|
Copyright (c) 2009, 2010 IBM Corporation and others.
|
2009-04-17 18:52:09 +00:00
|
|
|
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=".">
|
|
|
|
|
2010-05-12 17:19:17 +00:00
|
|
|
<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" />
|
|
|
|
|
|
|
|
|
2009-04-17 18:52:09 +00:00
|
|
|
<target name="c">
|
|
|
|
<antcall target="generate_c">
|
2010-05-12 17:19:17 +00:00
|
|
|
<param name="grammar_name" value="XlcCParser" />
|
2009-04-17 18:52:09 +00:00
|
|
|
</antcall>
|
2010-05-12 17:19:17 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="cpp">
|
2009-04-17 18:52:09 +00:00
|
|
|
<antcall target="generate_cpp">
|
2010-05-12 17:19:17 +00:00
|
|
|
<param name="grammar_name" value="XlcCPPParser" />
|
2009-04-17 18:52:09 +00:00
|
|
|
</antcall>
|
|
|
|
</target>
|
2010-05-12 17:19:17 +00:00
|
|
|
|
|
|
|
|
2009-04-17 18:52:09 +00:00
|
|
|
<target name="generate_c">
|
2010-05-12 17:19:17 +00:00
|
|
|
<property name="lpg_include" value="${lpg_include_loc}/gcc" />
|
2009-04-17 18:52:09 +00:00
|
|
|
<antcall target="generate">
|
2010-05-12 17:19:17 +00:00
|
|
|
<param name="grammar_dir" value="xlc" />
|
|
|
|
<param name="output_dir" value="${c_location}" />
|
|
|
|
<param name="grammar_name" value="${grammar_name}" />
|
2009-04-17 18:52:09 +00:00
|
|
|
</antcall>
|
|
|
|
</target>
|
2010-05-12 17:19:17 +00:00
|
|
|
|
2009-04-17 18:52:09 +00:00
|
|
|
<target name="generate_cpp">
|
2010-05-12 17:19:17 +00:00
|
|
|
<property name="lpg_include" value="${lpg_include_loc}/gpp" />
|
2009-04-17 18:52:09 +00:00
|
|
|
<antcall target="generate">
|
2010-05-12 17:19:17 +00:00
|
|
|
<param name="grammar_dir" value="xlc" />
|
|
|
|
<param name="output_dir" value="${cpp_location}" />
|
|
|
|
<param name="grammar_name" value="${grammar_name}" />
|
2009-04-17 18:52:09 +00:00
|
|
|
</antcall>
|
|
|
|
</target>
|
|
|
|
|
2010-05-12 17:19:17 +00:00
|
|
|
<target name="clean_l_files">
|
|
|
|
<delete>
|
|
|
|
|
|
|
|
<fileset dir="${c_location}" includes="**/*.l" />
|
|
|
|
<fileset dir="${cpp_location}" includes="**/*.l" />
|
|
|
|
|
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|