Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 99a4603a9565897fdb6bde0c2d67a8b9a362d21b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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>  

Back to the top