Changes in src/Parser/parser.yy [84d58c5:67cf18c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r84d58c5 r67cf18c 1606 1606 1607 1607 typegen_name: // CFA 1608 TYPEGENname '(' type_list ')' 1608 TYPEGENname '(' ')' 1609 { $$ = DeclarationNode::newFromTypeGen( $1, nullptr ); } 1610 | TYPEGENname '(' type_list ')' 1609 1611 { $$ = DeclarationNode::newFromTypeGen( $1, $3 ); } 1610 1612 ; … … 1983 1985 1984 1986 type_parameter_list: // CFA 1985 type_parameter type_initializer_opt 1986 | type_parameter_list ',' type_parameter type_initializer_opt 1987 type_parameter 1988 { $$ = $1; } 1989 | type_parameter_list ',' type_parameter 1987 1990 { $$ = $1->appendList( $3 ); } 1988 1991 ; … … 1998 2001 type_class no_attr_identifier_or_type_name 1999 2002 { typedefTable.addToEnclosingScope( *$2, TypedefTable::TD ); } 2000 assertion_list_opt2001 { $$ = DeclarationNode::newTypeParam( $1, $2 )->add Assertions( $4); }2003 type_initializer_opt assertion_list_opt 2004 { $$ = DeclarationNode::newTypeParam( $1, $2 )->addTypeInitializer( $4 )->addAssertions( $5 ); } 2002 2005 | type_specifier identifier_parameter_declarator 2003 2006 ;
Note: See TracChangeset
for help on using the changeset viewer.