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

« back to all changes in this revision

Viewing changes to xlc/org.eclipse.cdt.core.lrparser.xlc/grammar/xlc/XlcGrammarExtensions.g

  • 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) 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
 
7
--
 
8
-- Contributors:
 
9
--     IBM Corporation - initial API and implementation
 
10
-----------------------------------------------------------------------------------
 
11
 
 
12
 
 
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
 
15
 
 
16
 
 
17
$Terminals
 
18
 
 
19
        vector
 
20
        pixel
 
21
        bool
 
22
        
 
23
        _Decimal32
 
24
        _Decimal64
 
25
        _Decimal128
 
26
        __static_assert
 
27
        
 
28
$End
 
29
 
 
30
 
 
31
 
 
32
 
 
33
 
 
34
$Rules
 
35
 
 
36
 
 
37
 
 
38
simple_type_specifier_token
 
39
    ::= '_Decimal32'
 
40
      | '_Decimal64'
 
41
      | '_Decimal128'
 
42
 
 
43
 
 
44
type_id
 
45
    ::= vector_type
 
46
          /. $Build  consumeTypeId(false);  $EndBuild ./
 
47
      | vector_type abstract_declarator
 
48
          /. $Build  consumeTypeId(true);  $EndBuild ./
 
49
 
 
50
vector_declaration
 
51
    ::= vector_type <openscope-ast> init_declarator_list ';'
 
52
              /. $Build  consumeDeclarationSimple(true);  $EndBuild ./
 
53
              
 
54
              
 
55
vector_type
 
56
    ::= <openscope-ast> no_type_declaration_specifiers_opt 'vector' vector_type_specifier all_specifier_qualifier_list_opt
 
57
          /. $Build  consumeVectorTypeSpecifier();  $EndBuild ./
 
58
      
 
59
      
 
60
vector_type_specifier
 
61
    ::= vector_type_specifier_token
 
62
          /. $Build  consumeToken();  $EndBuild ./
 
63
      
 
64
vector_type_specifier_token
 
65
    ::= 'pixel'
 
66
      | 'float'
 
67
      | 'bool'
 
68
      | 'signed'
 
69
      | 'unsigned'
 
70
      | 'char'
 
71
      | 'short'
 
72
      | 'int'
 
73
      | 'long'
 
74
 
 
75
 
 
76
 
 
77
all_specifier_qualifiers
 
78
    ::= vector_type_specifier
 
79
      | no_type_declaration_specifiers
 
80
      
 
81
all_specifier_qualifier_list
 
82
    ::= all_specifier_qualifiers
 
83
      | all_specifier_qualifier_list all_specifier_qualifiers
 
84
      
 
85
all_specifier_qualifier_list_opt
 
86
    ::= all_specifier_qualifier_list
 
87
      | $empty
 
88
 
 
89
no_type_declaration_specifiers_opt
 
90
    ::= no_type_declaration_specifiers
 
91
      | $empty
 
92
 
 
93
 
 
94
$End
 
95