1
-----------------------------------------------------------------------------------
2
-- Copyright (c) 2009, 2010 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
9
-- IBM Corporation - initial API and implementation
10
-----------------------------------------------------------------------------------
13
-- These are additional rules that allow for parsing of GNU extensions.
14
-- This file is intended to be mixed-in with C99Parser.g or GPPParser.g
38
simple_type_specifier_token
46
/. $Build consumeTypeId(false); $EndBuild ./
47
| vector_type abstract_declarator
48
/. $Build consumeTypeId(true); $EndBuild ./
51
::= vector_type <openscope-ast> init_declarator_list ';'
52
/. $Build consumeDeclarationSimple(true); $EndBuild ./
56
::= <openscope-ast> no_type_declaration_specifiers_opt 'vector' vector_type_specifier all_specifier_qualifier_list_opt
57
/. $Build consumeVectorTypeSpecifier(); $EndBuild ./
61
::= vector_type_specifier_token
62
/. $Build consumeToken(); $EndBuild ./
64
vector_type_specifier_token
77
all_specifier_qualifiers
78
::= vector_type_specifier
79
| no_type_declaration_specifiers
81
all_specifier_qualifier_list
82
::= all_specifier_qualifiers
83
| all_specifier_qualifier_list all_specifier_qualifiers
85
all_specifier_qualifier_list_opt
86
::= all_specifier_qualifier_list
89
no_type_declaration_specifiers_opt
90
::= no_type_declaration_specifiers