Changes in src/Parser/parser.yy [b048dc3:c0a33d2]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rb048dc3 rc0a33d2 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu May 24 1 8:11:59201813 // Update Count : 336 912 // Last Modified On : Thu May 24 16:49:58 2018 13 // Update Count : 3367 14 14 // 15 15 … … 1265 1265 1266 1266 declaration_list_opt: // used at beginning of switch statement 1267 pop // empty1267 pop 1268 1268 { $$ = nullptr; } 1269 1269 | declaration_list … … 1407 1407 { $$ = DeclarationNode::newTuple( $3 ); } 1408 1408 | '[' push cfa_parameter_list pop ',' push cfa_abstract_parameter_list pop ']' 1409 // To obtain LR(1 ), the last cfa_abstract_parameter_list is added into this flattened rule to lookahead to the ']'. 1409 // To obtain LR(1 ), the last cfa_abstract_parameter_list is added into this flattened rule to lookahead to the 1410 // ']'. 1410 1411 { $$ = DeclarationNode::newTuple( $3->appendList( $7 ) ); } 1411 1412 ; … … 2257 2258 TRAIT no_attr_identifier_or_type_name '(' push type_parameter_list pop ')' '{' '}' 2258 2259 { $$ = DeclarationNode::newTrait( $2, $5, 0 ); } 2259 | TRAIT no_attr_identifier_or_type_name '(' push type_parameter_list pop ')' '{' push trait_declaration_list '}' 2260 | TRAIT no_attr_identifier_or_type_name '(' push type_parameter_list pop ')' '{' 2261 { typedefTable.enterScope(); } 2262 trait_declaration_list '}' 2260 2263 { $$ = DeclarationNode::newTrait( $2, $5, $10 ); } 2261 2264 ;
Note:
See TracChangeset
for help on using the changeset viewer.