Ignore:
Timestamp:
Feb 5, 2023, 11:42:15 AM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, master
Children:
8fa77eb
Parents:
9ef5516 (diff), 35d1de5 (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

    r9ef5516 r6d2af204  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Jan 30 20:47:27 2023
    13 // Update Count     : 5859
     12// Last Modified On : Thu Feb  2 21:36:16 2023
     13// Update Count     : 5865
    1414//
    1515
     
    20802080                { $$ = DeclarationNode::newTypeQualifier( Type::Atomic ); }
    20812081        | forall
     2082                { $$ = DeclarationNode::newForall( $1 ); }
    20822083        ;
    20832084
    20842085forall:
    20852086        FORALL '(' type_parameter_list ')'                                      // CFA
    2086                 { $$ = DeclarationNode::newForall( $3 ); }
     2087                { $$ = $3; }
    20872088        ;
    20882089
     
    29782979trait_specifier:                                                                                // CFA
    29792980        TRAIT identifier_or_type_name '(' type_parameter_list ')' '{' '}'
    2980                 { $$ = DeclarationNode::newTrait( $2, $4, nullptr ); }
    2981         | FORALL '(' type_parameter_list ')' TRAIT identifier_or_type_name '{' '}' // alternate
    2982                 { $$ = DeclarationNode::newTrait( $6, $3, nullptr ); }
     2981                {
     2982                        SemanticWarning( yylloc, Warning::DeprecTraitSyntax, "" );
     2983                        $$ = DeclarationNode::newTrait( $2, $4, nullptr );
     2984                }
     2985        | forall TRAIT identifier_or_type_name '{' '}'          // alternate
     2986                { $$ = DeclarationNode::newTrait( $3, $1, nullptr ); }
    29832987        | TRAIT identifier_or_type_name '(' type_parameter_list ')' '{' push trait_declaration_list pop '}'
    2984                 { $$ = DeclarationNode::newTrait( $2, $4, $8 ); }
    2985         | FORALL '(' type_parameter_list ')' TRAIT identifier_or_type_name '{' push trait_declaration_list pop '}' // alternate
    2986                 { $$ = DeclarationNode::newTrait( $6, $3, $9 ); }
     2988                {
     2989                        SemanticWarning( yylloc, Warning::DeprecTraitSyntax, "" );
     2990                        $$ = DeclarationNode::newTrait( $2, $4, $8 );
     2991                }
     2992        | forall TRAIT identifier_or_type_name '{' push trait_declaration_list pop '}' // alternate
     2993                { $$ = DeclarationNode::newTrait( $3, $1, $6 ); }
    29872994        ;
    29882995
Note: See TracChangeset for help on using the changeset viewer.