Changeset 0522ebe for src/Parser
- Timestamp:
- Feb 26, 2024, 3:49:23 AM (14 months ago)
- Branches:
- master
- Children:
- a4da45e
- Parents:
- c17dc80
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Parser/parser.yy ¶
rc17dc80 r0522ebe 3006 3006 | assertion_list 3007 3007 { $$ = DeclarationNode::newTypeParam( ast::TypeDecl::Dtype, new string( DeclarationNode::anonymous.newName() ) )->addAssertions( $1 ); } 3008 | ENUM '(' identifier_or_type_name ')' identifier_or_type_name new_type_class type_initializer_opt assertion_list_opt 3009 { 3010 typedefTable.addToScope( *$3, TYPEDIMname, "type_parameter 4" ); 3011 typedefTable.addToScope( *$5, TYPEDIMname, "type_parameter 5" ); 3012 $$ = DeclarationNode::newTypeParam( $6, $5 )->addTypeInitializer( $7 )->addAssertions( $8 ); 3013 } 3008 3014 ; 3009 3015
Note: See TracChangeset
for help on using the changeset viewer.