~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to lrparser/org.eclipse.cdt.core.lrparser/grammar/build.xml

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
 Copyright (c) 2006, 2009 IBM Corporation and others.
 
3
 All rights reserved. This program and the accompanying materials
 
4
 are made available under the terms of the Eclipse Public License v1.0
 
5
 which accompanies this distribution, and is available at
 
6
 http://www.eclipse.org/legal/epl-v10.html
 
7
 
 
8
 Contributors:
 
9
     IBM Corporation - initial API and implementation
 
10
-->
 
11
 
 
12
<project name="CDT Extensible LR Parser Framework" basedir=".">
 
13
    <description>Generates LPG parsers from grammar files</description>
 
14
        
 
15
        <import file="generate.xml"/>
 
16
 
 
17
        <property name="c99_location" value="../src/org/eclipse/cdt/internal/core/dom/lrparser/c99"/>
 
18
        <property name="gcc_location" value="../src/org/eclipse/cdt/internal/core/dom/lrparser/gcc"/>
 
19
        <property name="cpp_location" value="../src/org/eclipse/cdt/internal/core/dom/lrparser/cpp"/>
 
20
        <property name="gpp_location" value="../src/org/eclipse/cdt/internal/core/dom/lrparser/gpp"/>
 
21
                
 
22
        <target name="all" depends="c99, gcc, cpp, gpp"/>
 
23
        
 
24
        <target name="clean_l_files">
 
25
                <delete>
 
26
                        <fileset dir="${c99_location}" includes="**/*.l"/>
 
27
                        <fileset dir="${gcc_location}" includes="**/*.l"/>
 
28
                        <fileset dir="${cpp_location}" includes="**/*.l"/>
 
29
                        <fileset dir="${gpp_location}" includes="**/*.l"/>
 
30
                </delete>
 
31
        </target>
 
32
        
 
33
        
 
34
        <target name="c99">
 
35
                <description>Generate the C99 parser</description>
 
36
                <!-- Generate main parser -->
 
37
                <antcall target="generate_c99">
 
38
            <param name="grammar_name" value="C99Parser"/>
 
39
                </antcall>
 
40
                <!-- Generate parser for disambiguating declarations vs expression statements -->
 
41
                <antcall target="generate_c99">
 
42
            <param name="grammar_name" value="C99ExpressionParser"/>
 
43
                </antcall>
 
44
                <!-- Generate parser for disambiguating cast expressions vs binary expressions-->
 
45
                <antcall target="generate_c99">
 
46
            <param name="grammar_name" value="C99NoCastExpressionParser"/>
 
47
                </antcall>
 
48
                <!-- Generate parser for disambiguating sizeof expressions -->
 
49
                <antcall target="generate_c99">
 
50
            <param name="grammar_name" value="C99SizeofExpressionParser"/>
 
51
                </antcall>
 
52
        </target>
 
53
        
 
54
        <target name="generate_c99">
 
55
                <antcall target="generate">
 
56
                        <param name="grammar_dir" value="c99"/>
 
57
                        <param name="output_dir" value="${c99_location}"/>
 
58
                        <param name="grammar_name" value="${grammar_name}"/>
 
59
                </antcall>
 
60
        </target>
 
61
 
 
62
        
 
63
        <target name="gcc">
 
64
                <description>Generate the GCC parser</description>
 
65
                <!-- Generate main parser -->
 
66
                <antcall target="generate_gcc">
 
67
            <param name="grammar_name" value="GCCParser"/>
 
68
                </antcall>
 
69
                <antcall target="generate_gcc">
 
70
            <param name="grammar_name" value="GCCSizeofExpressionParser"/>
 
71
                </antcall>
 
72
        </target>
 
73
        
 
74
        
 
75
        <target name="generate_gcc">
 
76
                <antcall target="generate">
 
77
                        <param name="grammar_dir" value="gcc"/>
 
78
                        <param name="output_dir" value="${gcc_location}"/>
 
79
                        <param name="grammar_name" value="${grammar_name}"/>
 
80
                </antcall>
 
81
        </target>
 
82
        
 
83
 
 
84
        <target name="cpp">
 
85
                <description>Generate the C++ parser</description>
 
86
                <antcall target="generate_cpp">
 
87
                        <param name="grammar_name" value="CPPParser"/>
 
88
                </antcall>
 
89
                <!-- Generate parser for disambiguating declarations vs expression statements -->
 
90
                <antcall target="generate_cpp">
 
91
            <param name="grammar_name" value="CPPExpressionParser"/>
 
92
                </antcall>
 
93
                <!-- Generate parser for disambiguating cast expressions vs binary expressions-->
 
94
                <antcall target="generate_cpp">
 
95
            <param name="grammar_name" value="CPPNoCastExpressionParser"/>
 
96
                </antcall>
 
97
                <!-- Generate parser for disambiguating sizeof expressions -->
 
98
                <antcall target="generate_cpp">
 
99
            <param name="grammar_name" value="CPPSizeofExpressionParser"/>
 
100
                </antcall>
 
101
                <!-- Generate parser for disambiguating declarators -->
 
102
                <antcall target="generate_cpp">
 
103
            <param name="grammar_name" value="CPPNoFunctionDeclaratorParser"/>
 
104
                </antcall>
 
105
                <!-- Generate parser for disambiguating template parameters -->
 
106
                <antcall target="generate_cpp">
 
107
            <param name="grammar_name" value="CPPTemplateTypeParameterParser"/>
 
108
                </antcall>
 
109
        </target>
 
110
        
 
111
        <target name="generate_cpp">
 
112
                <antcall target="generate">
 
113
                        <param name="grammar_dir" value="cpp"/>
 
114
                        <param name="output_dir" value="${cpp_location}"/>
 
115
                        <param name="grammar_name" value="${grammar_name}"/>
 
116
                </antcall>
 
117
        </target>
 
118
        
 
119
        
 
120
        <target name="gpp">
 
121
                <description>Generate the GCC parser</description>
 
122
                <!-- Generate main parser -->
 
123
                <antcall target="generate_gpp">
 
124
            <param name="grammar_name" value="GPPParser"/>
 
125
                </antcall>
 
126
                <antcall target="generate_gpp">
 
127
            <param name="grammar_name" value="GPPSizeofExpressionParser"/>
 
128
                </antcall>
 
129
        </target>
 
130
        
 
131
        
 
132
        <target name="generate_gpp">
 
133
                <antcall target="generate">
 
134
                        <param name="grammar_dir" value="gpp"/>
 
135
                        <param name="output_dir" value="${gpp_location}"/>
 
136
                        <param name="grammar_name" value="${grammar_name}"/>
 
137
                </antcall>
 
138
        </target>
 
139
        
 
140
 
 
141
        
 
142
        
 
143
        
 
144
</project>  
 
 
b'\\ No newline at end of file'