Changes in src/Parser/parser.yy [24711a3:4744074]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r24711a3 r4744074 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 26 18:41:54 202113 // Update Count : 49 9012 // Last Modified On : Wed Apr 14 18:13:44 2021 13 // Update Count : 4983 14 14 // 15 15 … … 211 211 } // forCtrl 212 212 213 bool forall = false ;// aggregate have one or more forall qualifiers ?213 bool forall = false, yyy = false; // aggregate have one or more forall qualifiers ? 214 214 215 215 // https://www.gnu.org/software/bison/manual/bison.html#Location-Type … … 812 812 { $$ = new ExpressionNode( build_cast( $2, $4 ) ); } 813 813 | '(' aggregate_control '&' ')' cast_expression // CFA 814 { $$ = new ExpressionNode( build_keyword_cast( $2, $5 ) ); }815 | '(' aggregate_control '*' ')' cast_expression // CFA816 814 { $$ = new ExpressionNode( build_keyword_cast( $2, $5 ) ); } 817 815 | '(' VIRTUAL ')' cast_expression // CFA … … 2130 2128 aggregate_data: 2131 2129 STRUCT vtable_opt 2132 { $$ = AggregateDecl::Struct; }2130 { yyy = true; $$ = AggregateDecl::Struct; } 2133 2131 | UNION 2134 { $$ = AggregateDecl::Union; }2132 { yyy = true; $$ = AggregateDecl::Union; } 2135 2133 | EXCEPTION // CFA 2136 { $$ = AggregateDecl::Exception; }2134 { yyy = true; $$ = AggregateDecl::Exception; } 2137 2135 // { SemanticError( yylloc, "exception aggregate is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; } 2138 2136 ; … … 2140 2138 aggregate_control: // CFA 2141 2139 MONITOR 2142 { $$ = AggregateDecl::Monitor; }2140 { yyy = true; $$ = AggregateDecl::Monitor; } 2143 2141 | MUTEX STRUCT 2144 { $$ = AggregateDecl::Monitor; }2142 { yyy = true; $$ = AggregateDecl::Monitor; } 2145 2143 | GENERATOR 2146 { $$ = AggregateDecl::Generator; }2144 { yyy = true; $$ = AggregateDecl::Generator; } 2147 2145 | MUTEX GENERATOR 2148 2146 { SemanticError( yylloc, "monitor generator is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; } 2149 2147 | COROUTINE 2150 { $$ = AggregateDecl::Coroutine; }2148 { yyy = true; $$ = AggregateDecl::Coroutine; } 2151 2149 | MUTEX COROUTINE 2152 2150 { SemanticError( yylloc, "monitor coroutine is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; } 2153 2151 | THREAD 2154 { $$ = AggregateDecl::Thread; }2152 { yyy = true; $$ = AggregateDecl::Thread; } 2155 2153 | MUTEX THREAD 2156 2154 { SemanticError( yylloc, "monitor thread is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; }
Note: See TracChangeset
for help on using the changeset viewer.