]> code.delx.au - gnu-emacs-elpa/blob - packages/ada-mode/gpr-grammar-wy.el
Merge commit '0cda39255827f283e7578cd469ae42daad9556a2' from js2-mode
[gnu-emacs-elpa] / packages / ada-mode / gpr-grammar-wy.el
1 ;;; gpr-grammar-wy.el --- Generated parser support file
2
3 ;; Copyright (C) 2013 - 2015 Free Software Foundation, Inc.
4
5 ;; This program is free software; you can redistribute it and/or
6 ;; modify it under the terms of the GNU General Public License as
7 ;; published by the Free Software Foundation; either version 3, or (at
8 ;; your option) any later version.
9 ;;
10 ;; This software is distributed in the hope that it will be useful,
11 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ;; General Public License for more details.
14 ;;
15 ;; You should have received a copy of the GNU General Public License
16 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
17
18 (require 'wisi)
19 (require 'semantic/lex)
20 (require 'wisi-compile)
21
22 (defconst gpr-grammar-wy--keyword-table
23 (semantic-lex-make-keyword-table
24 '(
25 ("abstract" . ABSTRACT)
26 ("aggregate" . AGGREGATE)
27 ("case" . CASE)
28 ("configuration" . CONFIGURATION)
29 ("end" . END)
30 ("extends" . EXTENDS)
31 ("external" . EXTERNAL)
32 ("external_as_list" . EXTERNAL_AS_LIST)
33 ("for" . FOR)
34 ("is" . IS)
35 ("(" . LEFT_PAREN)
36 ("library" . LIBRARY)
37 ("null" . NULL)
38 ("others" . OTHERS)
39 ("package" . PACKAGE)
40 ("project" . PROJECT)
41 ("renames" . RENAMES)
42 (")" . RIGHT_PAREN)
43 ("standard" . STANDARD)
44 ("type" . TYPE)
45 ("use" . USE)
46 ("when" . WHEN)
47 ("with" . WITH)
48 )
49 nil)
50 "Table of language keywords.")
51
52 (defconst gpr-grammar-wy--token-table
53 (semantic-lex-make-type-table
54 '(
55 ("punctuation"
56 (AMPERSAND . "&")
57 (COLON . ":")
58 (COLON_EQUALS . ":=")
59 (COMMA . ",")
60 (DOT . ".")
61 (EQUAL_GREATER . "=>")
62 (QUOTE . "'")
63 (SEMICOLON . ";")
64 (VERTICAL_BAR . "|")
65 )
66 ("symbol"
67 (IDENTIFIER)
68 )
69 ("string-double"
70 (STRING_LITERAL)
71 )
72 )
73 nil)
74 "Table of language tokens.")
75
76 (defconst gpr-grammar-wy--parse-table
77 (wisi-compile-grammar
78 '((AMPERSAND COLON COLON_EQUALS COMMA DOT EQUAL_GREATER QUOTE SEMICOLON VERTICAL_BAR IDENTIFIER STRING_LITERAL ABSTRACT AGGREGATE CASE CONFIGURATION END EXTENDS EXTERNAL EXTERNAL_AS_LIST FOR IS LEFT_PAREN LIBRARY NULL OTHERS PACKAGE PROJECT RENAMES RIGHT_PAREN STANDARD TYPE USE WHEN WITH )
79 ((aggregate
80 ((LEFT_PAREN string_list RIGHT_PAREN )
81 (progn
82 (wisi-statement-action [1 open-paren 3 close-paren])
83 (wisi-containing-action 1 2))))
84 (attribute_declaration
85 ((FOR IDENTIFIER USE expression SEMICOLON )
86 (progn
87 (wisi-statement-action [1 statement-start 3 statement-other 5 statement-end])
88 (wisi-containing-action 3 4)))
89 ((FOR IDENTIFIER LEFT_PAREN STRING_LITERAL RIGHT_PAREN USE expression SEMICOLON )
90 (progn
91 (wisi-statement-action [1 statement-start 3 open-paren 5 close-paren 6 statement-other 8 statement-end])
92 (wisi-containing-action 6 7)))
93 ((FOR EXTERNAL LEFT_PAREN STRING_LITERAL RIGHT_PAREN USE expression SEMICOLON )
94 (progn
95 (wisi-statement-action [1 statement-start 3 open-paren 5 close-paren 6 statement-other 8 statement-end])
96 (wisi-containing-action 6 7))))
97 (attribute_prefix
98 ((PROJECT ))
99 ((name )))
100 (attribute_reference
101 ((attribute_prefix QUOTE IDENTIFIER ))
102 ((attribute_prefix QUOTE IDENTIFIER LEFT_PAREN STRING_LITERAL RIGHT_PAREN )
103 (wisi-statement-action [4 open-paren 6 close-paren])))
104 (case_statement
105 ((CASE name IS case_items END CASE SEMICOLON )
106 (progn
107 (wisi-statement-action [1 statement-start 3 block-start 5 block-end 7 statement-end])
108 (wisi-containing-action 3 4))))
109 (case_item
110 ((WHEN discrete_choice_list EQUAL_GREATER declarative_items_opt )
111 (progn
112 (wisi-statement-action [1 block-middle 3 block-start])
113 (wisi-containing-action 1 3)
114 (wisi-containing-action 3 4))))
115 (case_items
116 (())
117 ((case_item ))
118 ((case_items case_item )))
119 (compilation_unit
120 ((context_clause_opt project_qualifier_opt project_declaration_opt )))
121 (context_clause
122 ((with_clause ))
123 ((context_clause with_clause )))
124 (context_clause_opt
125 (())
126 ((context_clause )))
127 (declarative_item
128 ((simple_declarative_item ))
129 ((typed_string_declaration ))
130 ((package_declaration )))
131 (declarative_items
132 ((declarative_item ))
133 ((declarative_items declarative_item )))
134 (declarative_items_opt
135 (())
136 ((declarative_items )))
137 (discrete_choice
138 (())
139 ((STRING_LITERAL ))
140 ((OTHERS )))
141 (discrete_choice_list
142 ((discrete_choice ))
143 ((discrete_choice_list VERTICAL_BAR discrete_choice )))
144 (expression
145 ((term ))
146 ((expression AMPERSAND term )))
147 (external_value
148 ((EXTERNAL aggregate ))
149 ((EXTERNAL_AS_LIST aggregate )))
150 (identifier_opt
151 (())
152 ((IDENTIFIER )))
153 (name
154 ((identifier_opt ))
155 ((name DOT IDENTIFIER )))
156 (project_declaration_opt
157 (())
158 ((simple_project_declaration ))
159 ((project_extension )))
160 (package_declaration
161 ((package_spec ))
162 ((package_extension ))
163 ((package_renaming )))
164 (package_spec
165 ((PACKAGE identifier_opt IS declarative_items_opt END identifier_opt SEMICOLON )
166 (progn
167 (wisi-statement-action [1 statement-start 3 block-start 5 block-end 7 statement-end])
168 (wisi-containing-action 3 4))))
169 (package_extension
170 ((PACKAGE identifier_opt EXTENDS name IS declarative_items_opt END identifier_opt SEMICOLON )
171 (progn
172 (wisi-statement-action [1 statement-start 5 block-start 7 block-end 9 statement-end])
173 (wisi-containing-action 5 6))))
174 (package_renaming
175 ((PACKAGE identifier_opt RENAMES name SEMICOLON )
176 (progn
177 (wisi-statement-action [1 statement-start 3 statement-other 5 statement-end])
178 (wisi-containing-action 3 4))))
179 (project_extension
180 ((PROJECT identifier_opt EXTENDS STRING_LITERAL IS declarative_items_opt END identifier_opt SEMICOLON )
181 (progn
182 (wisi-statement-action [1 statement-start 5 block-start 7 block-end 9 statement-end])
183 (wisi-containing-action 5 6))))
184 (project_qualifier_opt
185 (())
186 ((ABSTRACT ))
187 ((STANDARD ))
188 ((AGGREGATE ))
189 ((AGGREGATE LIBRARY ))
190 ((LIBRARY ))
191 ((CONFIGURATION )))
192 (simple_declarative_item
193 ((IDENTIFIER COLON_EQUALS expression SEMICOLON )
194 (progn
195 (wisi-statement-action [1 statement-start 4 statement-end])
196 (wisi-containing-action 1 3)))
197 ((IDENTIFIER COLON IDENTIFIER COLON_EQUALS expression SEMICOLON )
198 (progn
199 (wisi-statement-action [1 statement-start 6 statement-end])
200 (wisi-containing-action 1 5)))
201 ((attribute_declaration ))
202 ((case_statement ))
203 ((NULL SEMICOLON )
204 (wisi-statement-action [1 statement-start 2 statement-end])))
205 (simple_project_declaration
206 ((PROJECT identifier_opt IS declarative_items_opt END identifier_opt SEMICOLON )
207 (progn
208 (wisi-statement-action [1 statement-start 3 block-start 5 block-end 7 statement-end])
209 (wisi-containing-action 3 4))))
210 (string_expression
211 ((string_primary )))
212 (string_primary
213 ((STRING_LITERAL ))
214 ((name ))
215 ((external_value ))
216 ((attribute_reference )))
217 (string_list
218 ((expression ))
219 ((string_list COMMA expression )
220 (progn
221 (wisi-statement-action [2 list-break])
222 (wisi-containing-action 2 3))))
223 (term
224 ((string_expression ))
225 ((LEFT_PAREN RIGHT_PAREN ))
226 ((aggregate )))
227 (typed_string_declaration
228 ((TYPE IDENTIFIER IS aggregate SEMICOLON )
229 (progn
230 (wisi-statement-action [1 statement-start 5 statement-end])
231 (wisi-containing-action 1 4))))
232 (with_clause
233 ((WITH string_list SEMICOLON ))))
234 [((default . error) (ABSTRACT . (context_clause_opt . 0)) (AGGREGATE . (context_clause_opt . 0)) (CONFIGURATION . (context_clause_opt . 0)) (LIBRARY . (context_clause_opt . 0)) (STANDARD . (context_clause_opt . 0)) (PROJECT . (context_clause_opt . 0)) ($EOI . (context_clause_opt . 0)) (WITH . 7))
235 ((default . error) ($EOI . (project_qualifier_opt . 1)) (PROJECT . (project_qualifier_opt . 1)))
236 ((default . error) (LIBRARY . 35) ($EOI . (project_qualifier_opt . 3)) (PROJECT . (project_qualifier_opt . 3)))
237 ((default . error) ($EOI . (project_qualifier_opt . 6)) (PROJECT . (project_qualifier_opt . 6)))
238 ((default . error) ($EOI . (project_qualifier_opt . 5)) (PROJECT . (project_qualifier_opt . 5)))
239 ((default . error) (EXTENDS . (identifier_opt . 0)) (IS . (identifier_opt . 0)) (IDENTIFIER . 21))
240 ((default . error) ($EOI . (project_qualifier_opt . 2)) (PROJECT . (project_qualifier_opt . 2)))
241 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (SEMICOLON . (identifier_opt . 0)) (COMMA . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
242 ((default . error) ($EOI . 16))
243 ((default . error) (ABSTRACT . (context_clause_opt . 1)) (AGGREGATE . (context_clause_opt . 1)) (CONFIGURATION . (context_clause_opt . 1)) (LIBRARY . (context_clause_opt . 1)) (STANDARD . (context_clause_opt . 1)) (PROJECT . (context_clause_opt . 1)) ($EOI . (context_clause_opt . 1)) (WITH . 7))
244 ((default . error) (PROJECT . (project_qualifier_opt . 0)) ($EOI . (project_qualifier_opt . 0)) (ABSTRACT . 1) (STANDARD . 6) (AGGREGATE . 2) (LIBRARY . 4) (CONFIGURATION . 3))
245 ((default . error) ($EOI . (project_declaration_opt . 2)))
246 ((default . error) ($EOI . (project_declaration_opt . 1)))
247 ((default . error) ($EOI . (context_clause . 0)) (PROJECT . (context_clause . 0)) (STANDARD . (context_clause . 0)) (LIBRARY . (context_clause . 0)) (CONFIGURATION . (context_clause . 0)) (AGGREGATE . (context_clause . 0)) (ABSTRACT . (context_clause . 0)) (WITH . (context_clause . 0)))
248 ((default . error) ($EOI . (project_declaration_opt . 0)) (PROJECT . 5))
249 ((default . error) (WITH . (context_clause . 1)) (ABSTRACT . (context_clause . 1)) (AGGREGATE . (context_clause . 1)) (CONFIGURATION . (context_clause . 1)) (LIBRARY . (context_clause . 1)) (STANDARD . (context_clause . 1)) (PROJECT . (context_clause . 1)) ($EOI . (context_clause . 1)))
250 ((default . error) ($EOI . accept) (STRING_LITERAL . accept) (IDENTIFIER . accept) (VERTICAL_BAR . accept) (SEMICOLON . accept) (QUOTE . accept) (EQUAL_GREATER . accept) (DOT . accept) (COMMA . accept) (COLON_EQUALS . accept) (COLON . accept) (AMPERSAND . accept) (WITH . accept) (WHEN . accept) (USE . accept) (TYPE . accept) (STANDARD . accept) (RIGHT_PAREN . accept) (RENAMES . accept) (PROJECT . accept) (PACKAGE . accept) (OTHERS . accept) (NULL . accept) (LIBRARY . accept) (LEFT_PAREN . accept) (IS . accept) (FOR . accept) (EXTERNAL_AS_LIST . accept) (EXTERNAL . accept) (EXTENDS . accept) (END . accept) (CONFIGURATION . accept) (CASE . accept) (AGGREGATE . accept) (ABSTRACT . accept))
251 ((default . error) (LEFT_PAREN . 45))
252 ((default . error) (LEFT_PAREN . 45))
253 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (RIGHT_PAREN . ( 43 (identifier_opt . 0))) (COMMA . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
254 ((default . error) (QUOTE . (attribute_prefix . 0)))
255 ((default . error) (RIGHT_PAREN . (identifier_opt . 1)) (COMMA . (identifier_opt . 1)) (EXTENDS . (identifier_opt . 1)) (RENAMES . (identifier_opt . 1)) (IS . (identifier_opt . 1)) (DOT . (identifier_opt . 1)) (AMPERSAND . (identifier_opt . 1)) (QUOTE . (identifier_opt . 1)) (SEMICOLON . (identifier_opt . 1)))
256 ((default . error) (RIGHT_PAREN . (string_primary . 0)) (COMMA . (string_primary . 0)) (AMPERSAND . (string_primary . 0)) (SEMICOLON . (string_primary . 0)))
257 ((default . error) (RIGHT_PAREN . (term . 2)) (COMMA . (term . 2)) (AMPERSAND . (term . 2)) (SEMICOLON . (term . 2)))
258 ((default . error) (QUOTE . 42))
259 ((default . error) (RIGHT_PAREN . (string_primary . 3)) (COMMA . (string_primary . 3)) (AMPERSAND . (string_primary . 3)) (SEMICOLON . (string_primary . 3)))
260 ((default . error) (SEMICOLON . (string_list . 0)) (RIGHT_PAREN . (string_list . 0)) (COMMA . (string_list . 0)) (AMPERSAND . 41))
261 ((default . error) (RIGHT_PAREN . (string_primary . 2)) (COMMA . (string_primary . 2)) (AMPERSAND . (string_primary . 2)) (SEMICOLON . (string_primary . 2)))
262 ((default . error) (COMMA . (name . 0)) (RIGHT_PAREN . (name . 0)) (IS . (name . 0)) (SEMICOLON . (name . 0)) (AMPERSAND . (name . 0)) (DOT . (name . 0)) (QUOTE . (name . 0)))
263 ((default . error) (RIGHT_PAREN . (string_primary . 1)) (COMMA . (string_primary . 1)) (AMPERSAND . (string_primary . 1)) (SEMICOLON . (string_primary . 1)) (DOT . 40) (QUOTE . (attribute_prefix . 1)))
264 ((default . error) (RIGHT_PAREN . (term . 0)) (COMMA . (term . 0)) (AMPERSAND . (term . 0)) (SEMICOLON . (term . 0)))
265 ((default . error) (COMMA . (string_expression . 0)) (RIGHT_PAREN . (string_expression . 0)) (SEMICOLON . (string_expression . 0)) (AMPERSAND . (string_expression . 0)))
266 ((default . error) (COMMA . 38) (SEMICOLON . 39))
267 ((default . error) (COMMA . (expression . 0)) (RIGHT_PAREN . (expression . 0)) (SEMICOLON . (expression . 0)) (AMPERSAND . (expression . 0)))
268 ((default . error) (EXTENDS . 36) (IS . 37))
269 ((default . error) ($EOI . (project_qualifier_opt . 4)) (PROJECT . (project_qualifier_opt . 4)))
270 ((default . error) (STRING_LITERAL . 71))
271 ((default . error) (END . (declarative_items_opt . 0)) (TYPE . 58) (IDENTIFIER . 59) (NULL . 56) (CASE . 54) (FOR . 55) (PACKAGE . 57))
272 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (RIGHT_PAREN . (identifier_opt . 0)) (COMMA . (identifier_opt . 0)) (SEMICOLON . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
273 ((default . error) (WITH . (with_clause . 0)) (ABSTRACT . (with_clause . 0)) (AGGREGATE . (with_clause . 0)) (CONFIGURATION . (with_clause . 0)) (LIBRARY . (with_clause . 0)) (STANDARD . (with_clause . 0)) (PROJECT . (with_clause . 0)) ($EOI . (with_clause . 0)))
274 ((default . error) (IDENTIFIER . 52))
275 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (SEMICOLON . (identifier_opt . 0)) (COMMA . (identifier_opt . 0)) (RIGHT_PAREN . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
276 ((default . error) (IDENTIFIER . 50))
277 ((default . error) (SEMICOLON . (term . 1)) (AMPERSAND . (term . 1)) (COMMA . (term . 1)) (RIGHT_PAREN . (term . 1)))
278 ((default . error) (COMMA . 38) (RIGHT_PAREN . 49))
279 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (RIGHT_PAREN . (identifier_opt . 0)) (COMMA . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
280 ((default . error) (AMPERSAND . (external_value . 1)) (SEMICOLON . (external_value . 1)) (RIGHT_PAREN . (external_value . 1)) (COMMA . (external_value . 1)))
281 ((default . error) (AMPERSAND . (external_value . 0)) (SEMICOLON . (external_value . 0)) (RIGHT_PAREN . (external_value . 0)) (COMMA . (external_value . 0)))
282 ((default . error) ($EOI . (compilation_unit . 0)))
283 ((default . error) (COMMA . (aggregate . 0)) (RIGHT_PAREN . (aggregate . 0)) (SEMICOLON . (aggregate . 0)) (AMPERSAND . (aggregate . 0)))
284 ((default . error) (LEFT_PAREN . 83) (COMMA . (attribute_reference . 0)) (RIGHT_PAREN . (attribute_reference . 0)) (SEMICOLON . (attribute_reference . 0)) (AMPERSAND . (attribute_reference . 0)))
285 ((default . error) (SEMICOLON . (expression . 1)) (COMMA . (expression . 1)) (RIGHT_PAREN . (expression . 1)) (AMPERSAND . (expression . 1)))
286 ((default . error) (IS . (name . 1)) (COMMA . (name . 1)) (RIGHT_PAREN . (name . 1)) (SEMICOLON . (name . 1)) (AMPERSAND . (name . 1)) (DOT . (name . 1)) (QUOTE . (name . 1)))
287 ((default . error) (AMPERSAND . 41) (RIGHT_PAREN . (string_list . 1)) (SEMICOLON . (string_list . 1)) (COMMA . (string_list . 1)))
288 ((default . error) (DOT . (identifier_opt . 0)) (IS . (identifier_opt . 0)) (IDENTIFIER . 21))
289 ((default . error) (EXTERNAL . 80) (IDENTIFIER . 81))
290 ((default . error) (SEMICOLON . 79))
291 ((default . error) (IS . (identifier_opt . 0)) (EXTENDS . (identifier_opt . 0)) (RENAMES . (identifier_opt . 0)) (IDENTIFIER . 21))
292 ((default . error) (IDENTIFIER . 77))
293 ((default . error) (COLON . 75) (COLON_EQUALS . 76))
294 ((default . error) (WHEN . (simple_declarative_item . 2)) (END . (simple_declarative_item . 2)) (CASE . (simple_declarative_item . 2)) (FOR . (simple_declarative_item . 2)) (NULL . (simple_declarative_item . 2)) (PACKAGE . (simple_declarative_item . 2)) (TYPE . (simple_declarative_item . 2)) (IDENTIFIER . (simple_declarative_item . 2)))
295 ((default . error) (WHEN . (simple_declarative_item . 3)) (END . (simple_declarative_item . 3)) (CASE . (simple_declarative_item . 3)) (FOR . (simple_declarative_item . 3)) (NULL . (simple_declarative_item . 3)) (PACKAGE . (simple_declarative_item . 3)) (TYPE . (simple_declarative_item . 3)) (IDENTIFIER . (simple_declarative_item . 3)))
296 ((default . error) (WHEN . (declarative_items . 0)) (END . (declarative_items . 0)) (CASE . (declarative_items . 0)) (FOR . (declarative_items . 0)) (NULL . (declarative_items . 0)) (PACKAGE . (declarative_items . 0)) (TYPE . (declarative_items . 0)) (IDENTIFIER . (declarative_items . 0)))
297 ((default . error) (WHEN . (declarative_items_opt . 1)) (END . (declarative_items_opt . 1)) (TYPE . 58) (IDENTIFIER . 59) (NULL . 56) (CASE . 54) (FOR . 55) (PACKAGE . 57))
298 ((default . error) (END . 73))
299 ((default . error) (WHEN . (declarative_item . 2)) (END . (declarative_item . 2)) (IDENTIFIER . (declarative_item . 2)) (TYPE . (declarative_item . 2)) (PACKAGE . (declarative_item . 2)) (NULL . (declarative_item . 2)) (FOR . (declarative_item . 2)) (CASE . (declarative_item . 2)))
300 ((default . error) (WHEN . (package_declaration . 0)) (END . (package_declaration . 0)) (CASE . (package_declaration . 0)) (FOR . (package_declaration . 0)) (NULL . (package_declaration . 0)) (PACKAGE . (package_declaration . 0)) (TYPE . (package_declaration . 0)) (IDENTIFIER . (package_declaration . 0)))
301 ((default . error) (WHEN . (package_declaration . 1)) (END . (package_declaration . 1)) (CASE . (package_declaration . 1)) (FOR . (package_declaration . 1)) (NULL . (package_declaration . 1)) (PACKAGE . (package_declaration . 1)) (TYPE . (package_declaration . 1)) (IDENTIFIER . (package_declaration . 1)))
302 ((default . error) (WHEN . (package_declaration . 2)) (END . (package_declaration . 2)) (CASE . (package_declaration . 2)) (FOR . (package_declaration . 2)) (NULL . (package_declaration . 2)) (PACKAGE . (package_declaration . 2)) (TYPE . (package_declaration . 2)) (IDENTIFIER . (package_declaration . 2)))
303 ((default . error) (WHEN . (declarative_item . 0)) (END . (declarative_item . 0)) (IDENTIFIER . (declarative_item . 0)) (TYPE . (declarative_item . 0)) (PACKAGE . (declarative_item . 0)) (NULL . (declarative_item . 0)) (FOR . (declarative_item . 0)) (CASE . (declarative_item . 0)))
304 ((default . error) (WHEN . (declarative_item . 1)) (END . (declarative_item . 1)) (IDENTIFIER . (declarative_item . 1)) (TYPE . (declarative_item . 1)) (PACKAGE . (declarative_item . 1)) (NULL . (declarative_item . 1)) (FOR . (declarative_item . 1)) (CASE . (declarative_item . 1)))
305 ((default . error) (IS . 72))
306 ((default . error) (END . (declarative_items_opt . 0)) (TYPE . 58) (IDENTIFIER . 59) (NULL . 56) (CASE . 54) (FOR . 55) (PACKAGE . 57))
307 ((default . error) (SEMICOLON . (identifier_opt . 0)) (IDENTIFIER . 21))
308 ((default . error) (WHEN . (declarative_items . 1)) (IDENTIFIER . (declarative_items . 1)) (TYPE . (declarative_items . 1)) (PACKAGE . (declarative_items . 1)) (NULL . (declarative_items . 1)) (FOR . (declarative_items . 1)) (CASE . (declarative_items . 1)) (END . (declarative_items . 1)))
309 ((default . error) (IDENTIFIER . 94))
310 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (SEMICOLON . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
311 ((default . error) (IS . 92))
312 ((default . error) (IS . 90) (EXTENDS . 89) (RENAMES . 91))
313 ((default . error) (WHEN . (simple_declarative_item . 4)) (IDENTIFIER . (simple_declarative_item . 4)) (TYPE . (simple_declarative_item . 4)) (PACKAGE . (simple_declarative_item . 4)) (NULL . (simple_declarative_item . 4)) (FOR . (simple_declarative_item . 4)) (CASE . (simple_declarative_item . 4)) (END . (simple_declarative_item . 4)))
314 ((default . error) (LEFT_PAREN . 88))
315 ((default . error) (USE . 87) (LEFT_PAREN . 86))
316 ((default . error) (DOT . 40) (IS . 85))
317 ((default . error) (STRING_LITERAL . 84))
318 ((default . error) (RIGHT_PAREN . 111))
319 ((default . error) (END . (case_items . 0)) (WHEN . ( 108 (case_items . 0))))
320 ((default . error) (STRING_LITERAL . 107))
321 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (SEMICOLON . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
322 ((default . error) (STRING_LITERAL . 105))
323 ((default . error) (DOT . (identifier_opt . 0)) (IS . (identifier_opt . 0)) (IDENTIFIER . 21))
324 ((default . error) (END . (declarative_items_opt . 0)) (TYPE . 58) (IDENTIFIER . 59) (NULL . 56) (CASE . 54) (FOR . 55) (PACKAGE . 57))
325 ((default . error) (DOT . (identifier_opt . 0)) (SEMICOLON . (identifier_opt . 0)) (IDENTIFIER . 21))
326 ((default . error) (LEFT_PAREN . 45))
327 ((default . error) (AMPERSAND . 41) (SEMICOLON . 100))
328 ((default . error) (COLON_EQUALS . 99))
329 ((default . error) (SEMICOLON . 98))
330 ((default . error) (END . 97))
331 ((default . error) (SEMICOLON . (identifier_opt . 0)) (IDENTIFIER . 21))
332 ((default . error) ($EOI . (simple_project_declaration . 0)))
333 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (SEMICOLON . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
334 ((default . error) (WHEN . (simple_declarative_item . 0)) (IDENTIFIER . (simple_declarative_item . 0)) (TYPE . (simple_declarative_item . 0)) (PACKAGE . (simple_declarative_item . 0)) (NULL . (simple_declarative_item . 0)) (FOR . (simple_declarative_item . 0)) (CASE . (simple_declarative_item . 0)) (END . (simple_declarative_item . 0)))
335 ((default . error) (SEMICOLON . 124))
336 ((default . error) (DOT . 40) (SEMICOLON . 123))
337 ((default . error) (END . 122))
338 ((default . error) (DOT . 40) (IS . 121))
339 ((default . error) (RIGHT_PAREN . 120))
340 ((default . error) (AMPERSAND . 41) (SEMICOLON . 119))
341 ((default . error) (RIGHT_PAREN . 118))
342 ((default . error) (VERTICAL_BAR . (discrete_choice . 0)) (EQUAL_GREATER . (discrete_choice . 0)) (STRING_LITERAL . 115) (OTHERS . 114))
343 ((default . error) (END . (case_items . 1)) (WHEN . (case_items . 1)))
344 ((default . error) (END . 112) (WHEN . 108))
345 ((default . error) (AMPERSAND . (attribute_reference . 1)) (SEMICOLON . (attribute_reference . 1)) (RIGHT_PAREN . (attribute_reference . 1)) (COMMA . (attribute_reference . 1)))
346 ((default . error) (CASE . 135))
347 ((default . error) (WHEN . (case_items . 2)) (END . (case_items . 2)))
348 ((default . error) (VERTICAL_BAR . (discrete_choice . 2)) (EQUAL_GREATER . (discrete_choice . 2)))
349 ((default . error) (VERTICAL_BAR . (discrete_choice . 1)) (EQUAL_GREATER . (discrete_choice . 1)))
350 ((default . error) (EQUAL_GREATER . (discrete_choice_list . 0)) (VERTICAL_BAR . (discrete_choice_list . 0)))
351 ((default . error) (VERTICAL_BAR . 134) (EQUAL_GREATER . 133))
352 ((default . error) (USE . 132))
353 ((default . error) (WHEN . (attribute_declaration . 0)) (END . (attribute_declaration . 0)) (IDENTIFIER . (attribute_declaration . 0)) (TYPE . (attribute_declaration . 0)) (PACKAGE . (attribute_declaration . 0)) (NULL . (attribute_declaration . 0)) (FOR . (attribute_declaration . 0)) (CASE . (attribute_declaration . 0)))
354 ((default . error) (USE . 131))
355 ((default . error) (END . (declarative_items_opt . 0)) (TYPE . 58) (IDENTIFIER . 59) (NULL . 56) (CASE . 54) (FOR . 55) (PACKAGE . 57))
356 ((default . error) (SEMICOLON . (identifier_opt . 0)) (IDENTIFIER . 21))
357 ((default . error) (WHEN . (package_renaming . 0)) (END . (package_renaming . 0)) (IDENTIFIER . (package_renaming . 0)) (TYPE . (package_renaming . 0)) (PACKAGE . (package_renaming . 0)) (NULL . (package_renaming . 0)) (FOR . (package_renaming . 0)) (CASE . (package_renaming . 0)))
358 ((default . error) (WHEN . (typed_string_declaration . 0)) (END . (typed_string_declaration . 0)) (CASE . (typed_string_declaration . 0)) (FOR . (typed_string_declaration . 0)) (NULL . (typed_string_declaration . 0)) (PACKAGE . (typed_string_declaration . 0)) (TYPE . (typed_string_declaration . 0)) (IDENTIFIER . (typed_string_declaration . 0)))
359 ((default . error) (AMPERSAND . 41) (SEMICOLON . 128))
360 ((default . error) (SEMICOLON . 127))
361 ((default . error) ($EOI . (project_extension . 0)))
362 ((default . error) (WHEN . (simple_declarative_item . 1)) (IDENTIFIER . (simple_declarative_item . 1)) (TYPE . (simple_declarative_item . 1)) (PACKAGE . (simple_declarative_item . 1)) (NULL . (simple_declarative_item . 1)) (FOR . (simple_declarative_item . 1)) (CASE . (simple_declarative_item . 1)) (END . (simple_declarative_item . 1)))
363 ((default . error) (SEMICOLON . 142))
364 ((default . error) (END . 141))
365 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (SEMICOLON . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
366 ((default . error) (LEFT_PAREN . 19) (STRING_LITERAL . 22) (EXTERNAL . 17) (EXTERNAL_AS_LIST . 18) (DOT . (identifier_opt . 0)) (AMPERSAND . (identifier_opt . 0)) (SEMICOLON . (identifier_opt . 0)) (QUOTE . (identifier_opt . 0)) (IDENTIFIER . 21) (PROJECT . 20))
367 ((default . error) (END . (declarative_items_opt . 0)) (WHEN . (declarative_items_opt . 0)) (TYPE . 58) (IDENTIFIER . 59) (NULL . 56) (CASE . 54) (FOR . 55) (PACKAGE . 57))
368 ((default . error) (EQUAL_GREATER . (discrete_choice . 0)) (VERTICAL_BAR . (discrete_choice . 0)) (STRING_LITERAL . 115) (OTHERS . 114))
369 ((default . error) (SEMICOLON . 136))
370 ((default . error) (WHEN . (case_statement . 0)) (END . (case_statement . 0)) (IDENTIFIER . (case_statement . 0)) (TYPE . (case_statement . 0)) (PACKAGE . (case_statement . 0)) (NULL . (case_statement . 0)) (FOR . (case_statement . 0)) (CASE . (case_statement . 0)))
371 ((default . error) (EQUAL_GREATER . (discrete_choice_list . 1)) (VERTICAL_BAR . (discrete_choice_list . 1)))
372 ((default . error) (END . (case_item . 0)) (WHEN . (case_item . 0)))
373 ((default . error) (AMPERSAND . 41) (SEMICOLON . 145))
374 ((default . error) (AMPERSAND . 41) (SEMICOLON . 144))
375 ((default . error) (SEMICOLON . (identifier_opt . 0)) (IDENTIFIER . 21))
376 ((default . error) (WHEN . (package_spec . 0)) (END . (package_spec . 0)) (IDENTIFIER . (package_spec . 0)) (TYPE . (package_spec . 0)) (PACKAGE . (package_spec . 0)) (NULL . (package_spec . 0)) (FOR . (package_spec . 0)) (CASE . (package_spec . 0)))
377 ((default . error) (SEMICOLON . 146))
378 ((default . error) (WHEN . (attribute_declaration . 2)) (CASE . (attribute_declaration . 2)) (FOR . (attribute_declaration . 2)) (NULL . (attribute_declaration . 2)) (PACKAGE . (attribute_declaration . 2)) (TYPE . (attribute_declaration . 2)) (IDENTIFIER . (attribute_declaration . 2)) (END . (attribute_declaration . 2)))
379 ((default . error) (WHEN . (attribute_declaration . 1)) (CASE . (attribute_declaration . 1)) (FOR . (attribute_declaration . 1)) (NULL . (attribute_declaration . 1)) (PACKAGE . (attribute_declaration . 1)) (TYPE . (attribute_declaration . 1)) (IDENTIFIER . (attribute_declaration . 1)) (END . (attribute_declaration . 1)))
380 ((default . error) (WHEN . (package_extension . 0)) (END . (package_extension . 0)) (IDENTIFIER . (package_extension . 0)) (TYPE . (package_extension . 0)) (PACKAGE . (package_extension . 0)) (NULL . (package_extension . 0)) (FOR . (package_extension . 0)) (CASE . (package_extension . 0)))]
381 [((compilation_unit . 8)(context_clause . 9)(context_clause_opt . 10)(project_extension . 11)(simple_project_declaration . 12)(with_clause . 13))
382 nil
383 nil
384 nil
385 nil
386 ((identifier_opt . 34))
387 nil
388 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(expression . 26)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(string_list . 32)(term . 33))
389 nil
390 ((with_clause . 15))
391 ((project_qualifier_opt . 14))
392 nil
393 nil
394 nil
395 ((project_declaration_opt . 48)(project_extension . 11)(simple_project_declaration . 12))
396 nil
397 nil
398 ((aggregate . 47))
399 ((aggregate . 46))
400 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(expression . 26)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(string_list . 44)(term . 33))
401 nil
402 nil
403 nil
404 nil
405 nil
406 nil
407 nil
408 nil
409 nil
410 nil
411 nil
412 nil
413 nil
414 nil
415 nil
416 nil
417 nil
418 ((attribute_declaration . 60)(case_statement . 61)(declarative_item . 62)(declarative_items . 63)(declarative_items_opt . 64)(package_declaration . 65)(package_spec . 66)(package_extension . 67)(package_renaming . 68)(simple_declarative_item . 69)(typed_string_declaration . 70))
419 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(expression . 53)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(term . 33))
420 nil
421 nil
422 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(term . 51))
423 nil
424 nil
425 nil
426 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(expression . 26)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(string_list . 44)(term . 33))
427 nil
428 nil
429 nil
430 nil
431 nil
432 nil
433 nil
434 nil
435 ((identifier_opt . 28)(name . 82))
436 nil
437 nil
438 ((identifier_opt . 78))
439 nil
440 nil
441 nil
442 nil
443 nil
444 ((attribute_declaration . 60)(case_statement . 61)(declarative_item . 74)(package_declaration . 65)(package_spec . 66)(package_extension . 67)(package_renaming . 68)(simple_declarative_item . 69)(typed_string_declaration . 70))
445 nil
446 nil
447 nil
448 nil
449 nil
450 nil
451 nil
452 nil
453 ((attribute_declaration . 60)(case_statement . 61)(declarative_item . 62)(declarative_items . 63)(declarative_items_opt . 96)(package_declaration . 65)(package_spec . 66)(package_extension . 67)(package_renaming . 68)(simple_declarative_item . 69)(typed_string_declaration . 70))
454 ((identifier_opt . 95))
455 nil
456 nil
457 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(expression . 93)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(term . 33))
458 nil
459 nil
460 nil
461 nil
462 nil
463 nil
464 nil
465 nil
466 ((case_item . 109)(case_items . 110))
467 nil
468 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(expression . 106)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(term . 33))
469 nil
470 ((identifier_opt . 28)(name . 104))
471 ((attribute_declaration . 60)(case_statement . 61)(declarative_item . 62)(declarative_items . 63)(declarative_items_opt . 103)(package_declaration . 65)(package_spec . 66)(package_extension . 67)(package_renaming . 68)(simple_declarative_item . 69)(typed_string_declaration . 70))
472 ((identifier_opt . 28)(name . 102))
473 ((aggregate . 101))
474 nil
475 nil
476 nil
477 nil
478 ((identifier_opt . 126))
479 nil
480 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(expression . 125)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(term . 33))
481 nil
482 nil
483 nil
484 nil
485 nil
486 nil
487 nil
488 nil
489 ((discrete_choice . 116)(discrete_choice_list . 117))
490 nil
491 ((case_item . 113))
492 nil
493 nil
494 nil
495 nil
496 nil
497 nil
498 nil
499 nil
500 nil
501 nil
502 ((attribute_declaration . 60)(case_statement . 61)(declarative_item . 62)(declarative_items . 63)(declarative_items_opt . 130)(package_declaration . 65)(package_spec . 66)(package_extension . 67)(package_renaming . 68)(simple_declarative_item . 69)(typed_string_declaration . 70))
503 ((identifier_opt . 129))
504 nil
505 nil
506 nil
507 nil
508 nil
509 nil
510 nil
511 nil
512 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(expression . 140)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(term . 33))
513 ((aggregate . 23)(attribute_prefix . 24)(attribute_reference . 25)(expression . 139)(external_value . 27)(identifier_opt . 28)(name . 29)(string_expression . 30)(string_primary . 31)(term . 33))
514 ((attribute_declaration . 60)(case_statement . 61)(declarative_item . 62)(declarative_items . 63)(declarative_items_opt . 138)(package_declaration . 65)(package_spec . 66)(package_extension . 67)(package_renaming . 68)(simple_declarative_item . 69)(typed_string_declaration . 70))
515 ((discrete_choice . 137))
516 nil
517 nil
518 nil
519 nil
520 nil
521 nil
522 ((identifier_opt . 143))
523 nil
524 nil
525 nil
526 nil
527 nil]))
528 "Parser table.")
529
530 (provide 'gpr-grammar-wy)
531
532 ;; end of file