Changeset b048dc3 for src/Parser/parser.yy
- Timestamp:
- May 25, 2018, 9:46:23 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- cc2eda7
- Parents:
- 251454a0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r251454a0 rb048dc3 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 6:49:58201813 // Update Count : 336 712 // Last Modified On : Thu May 24 18:11:59 2018 13 // Update Count : 3369 14 14 // 15 15 … … 1265 1265 1266 1266 declaration_list_opt: // used at beginning of switch statement 1267 pop 1267 pop // empty 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 1410 // ']'. 1409 // To obtain LR(1 ), the last cfa_abstract_parameter_list is added into this flattened rule to lookahead to the ']'. 1411 1410 { $$ = DeclarationNode::newTuple( $3->appendList( $7 ) ); } 1412 1411 ; … … 2258 2257 TRAIT no_attr_identifier_or_type_name '(' push type_parameter_list pop ')' '{' '}' 2259 2258 { $$ = DeclarationNode::newTrait( $2, $5, 0 ); } 2260 | TRAIT no_attr_identifier_or_type_name '(' push type_parameter_list pop ')' '{' 2261 { typedefTable.enterScope(); } 2262 trait_declaration_list '}' 2259 | TRAIT no_attr_identifier_or_type_name '(' push type_parameter_list pop ')' '{' push trait_declaration_list '}' 2263 2260 { $$ = DeclarationNode::newTrait( $2, $5, $10 ); } 2264 2261 ;
Note: See TracChangeset
for help on using the changeset viewer.