Changeset 3f9a8d0 for src/Parser


Ignore:
Timestamp:
Feb 26, 2024, 8:17:20 AM (19 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
f1149ac
Parents:
1bb76ad (diff), a4da45e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r1bb76ad r3f9a8d0  
    30223022        | assertion_list
    30233023                { $$ = DeclarationNode::newTypeParam( ast::TypeDecl::Dtype, new string( DeclarationNode::anonymous.newName() ) )->addAssertions( $1 ); }
     3024        | ENUM '(' identifier_or_type_name ')' identifier_or_type_name new_type_class type_initializer_opt assertion_list_opt
     3025                {       
     3026                        typedefTable.addToScope( *$3, TYPEDIMname, "type_parameter 4" );
     3027                        typedefTable.addToScope( *$5, TYPEDIMname, "type_parameter 5" );
     3028                        $$ = DeclarationNode::newTypeParam( $6, $5 )->addTypeInitializer( $7 )->addAssertions( $8 );
     3029                }
    30243030        ;
    30253031
Note: See TracChangeset for help on using the changeset viewer.