Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r24711a3 r4744074  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Apr 26 18:41:54 2021
    13 // Update Count     : 4990
     12// Last Modified On : Wed Apr 14 18:13:44 2021
     13// Update Count     : 4983
    1414//
    1515
     
    211211} // forCtrl
    212212
    213 bool forall = false;                                                                    // aggregate have one or more forall qualifiers ?
     213bool forall = false, yyy = false;                                               // aggregate have one or more forall qualifiers ?
    214214
    215215// https://www.gnu.org/software/bison/manual/bison.html#Location-Type
     
    812812                { $$ = new ExpressionNode( build_cast( $2, $4 ) ); }
    813813        | '(' aggregate_control '&' ')' cast_expression         // CFA
    814                 { $$ = new ExpressionNode( build_keyword_cast( $2, $5 ) ); }
    815         | '(' aggregate_control '*' ')' cast_expression         // CFA
    816814                { $$ = new ExpressionNode( build_keyword_cast( $2, $5 ) ); }
    817815        | '(' VIRTUAL ')' cast_expression                                       // CFA
     
    21302128aggregate_data:
    21312129        STRUCT vtable_opt
    2132                 { $$ = AggregateDecl::Struct; }
     2130                { yyy = true; $$ = AggregateDecl::Struct; }
    21332131        | UNION
    2134                 { $$ = AggregateDecl::Union; }
     2132                { yyy = true; $$ = AggregateDecl::Union; }
    21352133        | EXCEPTION                                                                                     // CFA
    2136                 { $$ = AggregateDecl::Exception; }
     2134                { yyy = true; $$ = AggregateDecl::Exception; }
    21372135          //            { SemanticError( yylloc, "exception aggregate is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; }
    21382136        ;
     
    21402138aggregate_control:                                                                              // CFA
    21412139        MONITOR
    2142                 { $$ = AggregateDecl::Monitor; }
     2140                { yyy = true; $$ = AggregateDecl::Monitor; }
    21432141        | MUTEX STRUCT
    2144                 { $$ = AggregateDecl::Monitor; }
     2142                { yyy = true; $$ = AggregateDecl::Monitor; }
    21452143        | GENERATOR
    2146                 { $$ = AggregateDecl::Generator; }
     2144                { yyy = true; $$ = AggregateDecl::Generator; }
    21472145        | MUTEX GENERATOR
    21482146                { SemanticError( yylloc, "monitor generator is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; }
    21492147        | COROUTINE
    2150                 { $$ = AggregateDecl::Coroutine; }
     2148                { yyy = true; $$ = AggregateDecl::Coroutine; }
    21512149        | MUTEX COROUTINE
    21522150                { SemanticError( yylloc, "monitor coroutine is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; }
    21532151        | THREAD
    2154                 { $$ = AggregateDecl::Thread; }
     2152                { yyy = true; $$ = AggregateDecl::Thread; }
    21552153        | MUTEX THREAD
    21562154                { SemanticError( yylloc, "monitor thread is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; }
Note: See TracChangeset for help on using the changeset viewer.