- Timestamp:
- Apr 26, 2021, 6:54:31 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 8840228
- Parents:
- aec68b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
raec68b6 r24711a3 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Apr 14 18:13:44 202113 // Update Count : 49 8312 // Last Modified On : Mon Apr 26 18:41:54 2021 13 // Update Count : 4990 14 14 // 15 15 … … 211 211 } // forCtrl 212 212 213 bool forall = false , yyy = false;// aggregate have one or more forall qualifiers ?213 bool forall = 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 // CFA 814 816 { $$ = new ExpressionNode( build_keyword_cast( $2, $5 ) ); } 815 817 | '(' VIRTUAL ')' cast_expression // CFA … … 2128 2130 aggregate_data: 2129 2131 STRUCT vtable_opt 2130 { yyy = true;$$ = AggregateDecl::Struct; }2132 { $$ = AggregateDecl::Struct; } 2131 2133 | UNION 2132 { yyy = true;$$ = AggregateDecl::Union; }2134 { $$ = AggregateDecl::Union; } 2133 2135 | EXCEPTION // CFA 2134 { yyy = true;$$ = AggregateDecl::Exception; }2136 { $$ = AggregateDecl::Exception; } 2135 2137 // { SemanticError( yylloc, "exception aggregate is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; } 2136 2138 ; … … 2138 2140 aggregate_control: // CFA 2139 2141 MONITOR 2140 { yyy = true;$$ = AggregateDecl::Monitor; }2142 { $$ = AggregateDecl::Monitor; } 2141 2143 | MUTEX STRUCT 2142 { yyy = true;$$ = AggregateDecl::Monitor; }2144 { $$ = AggregateDecl::Monitor; } 2143 2145 | GENERATOR 2144 { yyy = true;$$ = AggregateDecl::Generator; }2146 { $$ = AggregateDecl::Generator; } 2145 2147 | MUTEX GENERATOR 2146 2148 { SemanticError( yylloc, "monitor generator is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; } 2147 2149 | COROUTINE 2148 { yyy = true;$$ = AggregateDecl::Coroutine; }2150 { $$ = AggregateDecl::Coroutine; } 2149 2151 | MUTEX COROUTINE 2150 2152 { SemanticError( yylloc, "monitor coroutine is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; } 2151 2153 | THREAD 2152 { yyy = true;$$ = AggregateDecl::Thread; }2154 { $$ = AggregateDecl::Thread; } 2153 2155 | MUTEX THREAD 2154 2156 { SemanticError( yylloc, "monitor thread is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; }
Note: See TracChangeset
for help on using the changeset viewer.