mojoshader_parser_hlsl.lemon
changeset 725 5e3c35b63abd
parent 724 e96f140736f0
child 726 9f58e2b0ed8a
equal deleted inserted replaced
724:e96f140736f0 725:5e3c35b63abd
   134 interpolation_mod ::= NOPERSPECTIVE.
   134 interpolation_mod ::= NOPERSPECTIVE.
   135 interpolation_mod ::= SAMPLE.
   135 interpolation_mod ::= SAMPLE.
   136 
   136 
   137 global_variable ::= variable_declaration.
   137 global_variable ::= variable_declaration.
   138 
   138 
   139 variable_declaration ::= variable_attribute_list datatype scalar_or_array semantic annotations initializer variable_lowlevel SEMICOLON.
   139 variable_declaration ::= variable_attribute_list datatype variable_declaration_details_list SEMICOLON.
   140 variable_declaration ::= variable_attribute_list datatype scalar_or_array semantic annotations initializer SEMICOLON.
   140 variable_declaration ::= datatype variable_declaration_details_list SEMICOLON.
   141 variable_declaration ::= variable_attribute_list datatype scalar_or_array semantic annotations variable_lowlevel SEMICOLON.
       
   142 variable_declaration ::= variable_attribute_list datatype scalar_or_array semantic annotations SEMICOLON.
       
   143 variable_declaration ::= variable_attribute_list datatype scalar_or_array semantic initializer variable_lowlevel SEMICOLON.
       
   144 variable_declaration ::= variable_attribute_list datatype scalar_or_array semantic initializer SEMICOLON.
       
   145 variable_declaration ::= variable_attribute_list datatype scalar_or_array semantic variable_lowlevel SEMICOLON.
       
   146 variable_declaration ::= variable_attribute_list datatype scalar_or_array semantic SEMICOLON.
       
   147 variable_declaration ::= variable_attribute_list datatype scalar_or_array annotations initializer variable_lowlevel SEMICOLON.
       
   148 variable_declaration ::= variable_attribute_list datatype scalar_or_array annotations initializer SEMICOLON.
       
   149 variable_declaration ::= variable_attribute_list datatype scalar_or_array annotations variable_lowlevel SEMICOLON.
       
   150 variable_declaration ::= variable_attribute_list datatype scalar_or_array variable_lowlevel SEMICOLON.
       
   151 variable_declaration ::= variable_attribute_list datatype scalar_or_array initializer variable_lowlevel SEMICOLON.
       
   152 variable_declaration ::= variable_attribute_list datatype scalar_or_array initializer SEMICOLON.
       
   153 variable_declaration ::= variable_attribute_list datatype scalar_or_array annotations SEMICOLON.
       
   154 variable_declaration ::= variable_attribute_list datatype scalar_or_array SEMICOLON.
       
   155 variable_declaration ::= datatype scalar_or_array semantic annotations initializer variable_lowlevel SEMICOLON.
       
   156 variable_declaration ::= datatype scalar_or_array semantic annotations initializer SEMICOLON.
       
   157 variable_declaration ::= datatype scalar_or_array semantic annotations variable_lowlevel SEMICOLON.
       
   158 variable_declaration ::= datatype scalar_or_array semantic annotations SEMICOLON.
       
   159 variable_declaration ::= datatype scalar_or_array semantic initializer variable_lowlevel SEMICOLON.
       
   160 variable_declaration ::= datatype scalar_or_array semantic initializer SEMICOLON.
       
   161 variable_declaration ::= datatype scalar_or_array semantic variable_lowlevel SEMICOLON.
       
   162 variable_declaration ::= datatype scalar_or_array semantic SEMICOLON.
       
   163 variable_declaration ::= datatype scalar_or_array annotations initializer variable_lowlevel SEMICOLON.
       
   164 variable_declaration ::= datatype scalar_or_array annotations initializer SEMICOLON.
       
   165 variable_declaration ::= datatype scalar_or_array annotations variable_lowlevel SEMICOLON.
       
   166 variable_declaration ::= datatype scalar_or_array annotations SEMICOLON.
       
   167 variable_declaration ::= datatype scalar_or_array initializer variable_lowlevel SEMICOLON.
       
   168 variable_declaration ::= datatype scalar_or_array initializer SEMICOLON.
       
   169 variable_declaration ::= datatype scalar_or_array variable_lowlevel SEMICOLON.
       
   170 variable_declaration ::= datatype scalar_or_array SEMICOLON.
       
   171 variable_declaration ::= struct_declaration scalar_or_array SEMICOLON.
   141 variable_declaration ::= struct_declaration scalar_or_array SEMICOLON.
       
   142 
       
   143 variable_declaration_details_list ::= variable_declaration_details.
       
   144 variable_declaration_details_list ::= variable_declaration_details_list COMMA variable_declaration_details.
       
   145 
       
   146 variable_declaration_details ::= scalar_or_array semantic annotations initializer variable_lowlevel.
       
   147 variable_declaration_details ::= scalar_or_array semantic annotations initializer.
       
   148 variable_declaration_details ::= scalar_or_array semantic annotations variable_lowlevel.
       
   149 variable_declaration_details ::= scalar_or_array semantic annotations.
       
   150 variable_declaration_details ::= scalar_or_array semantic initializer variable_lowlevel.
       
   151 variable_declaration_details ::= scalar_or_array semantic initializer.
       
   152 variable_declaration_details ::= scalar_or_array semantic variable_lowlevel.
       
   153 variable_declaration_details ::= scalar_or_array semantic.
       
   154 variable_declaration_details ::= scalar_or_array annotations initializer variable_lowlevel.
       
   155 variable_declaration_details ::= scalar_or_array annotations initializer.
       
   156 variable_declaration_details ::= scalar_or_array annotations variable_lowlevel.
       
   157 variable_declaration_details ::= scalar_or_array annotations.
       
   158 variable_declaration_details ::= scalar_or_array initializer variable_lowlevel.
       
   159 variable_declaration_details ::= scalar_or_array initializer.
       
   160 variable_declaration_details ::= scalar_or_array variable_lowlevel.
       
   161 variable_declaration_details ::= scalar_or_array.
   172 
   162 
   173 // !!! FIXME: we don't handle full sampler declarations at the moment.
   163 // !!! FIXME: we don't handle full sampler declarations at the moment.
   174 
   164 
   175 struct_declaration ::= STRUCT identifier LBRACE struct_member_list RBRACE.
   165 struct_declaration ::= STRUCT identifier LBRACE struct_member_list RBRACE.
   176 
   166