Changes in / [cf34e82:1ee0a4da]
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/cofor.cfa
rcf34e82 r1ee0a4da 20 20 } 21 21 22 void __Cofor__( ssize_t low, ssize_t high, __cofor_body_t loop_body ) libcfa_public {22 void cofor( ssize_t low, ssize_t high, __cofor_body_t loop_body ) libcfa_public { 23 23 ssize_t range = high - low; 24 24 if ( range <= 0 ) return; -
libcfa/src/concurrency/cofor.hfa
rcf34e82 r1ee0a4da 5 5 typedef void (*__cofor_body_t)( ssize_t ); 6 6 7 void __Cofor__( ssize_t low, ssize_t high, __cofor_body_t loop_body );7 void cofor( ssize_t low, ssize_t high, __cofor_body_t loop_body ); 8 8 9 9 #define COFOR( lidname, low, high, loopbody ) \ … … 12 12 loopbody \ 13 13 } \ 14 __Cofor__( low, high, __CFA_loopLambda__ ); \14 cofor( low, high, __CFA_loopLambda__ ); \ 15 15 } 16 16 -
src/Parser/lex.ll
rcf34e82 r1ee0a4da 10 10 * Created On : Sat Sep 22 08:58:10 2001 11 11 * Last Modified By : Peter A. Buhr 12 * Last Modified On : Tue Oct 3 17:10:57202313 * Update Count : 77 312 * Last Modified On : Mon Oct 2 17:15:11 2023 13 * Update Count : 772 14 14 */ 15 15 … … 241 241 choose { KEYWORD_RETURN(CHOOSE); } // CFA 242 242 coerce { KEYWORD_RETURN(COERCE); } // CFA 243 corun { KEYWORD_RETURN(CORUN); } // CFA244 cofor { KEYWORD_RETURN(COFOR); } // CFA245 243 _Complex { KEYWORD_RETURN(COMPLEX); } // C99 246 244 __complex { KEYWORD_RETURN(COMPLEX); } // GCC -
src/Parser/parser.yy
rcf34e82 r1ee0a4da 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Oct 3 17:14:12 202313 // Update Count : 639 612 // Last Modified On : Mon Sep 4 18:28:12 2023 13 // Update Count : 6393 14 14 // 15 15 … … 350 350 %token IF ELSE SWITCH CASE DEFAULT DO WHILE FOR BREAK CONTINUE GOTO RETURN 351 351 %token CHOOSE FALLTHRU FALLTHROUGH WITH WHEN WAITFOR WAITUNTIL // CFA 352 %token CORUN COFOR353 352 %token DISABLE ENABLE TRY THROW THROWRESUME AT // CFA 354 353 %token ASM // C99, extension ISO/IEC 9899:1999 Section J.5.10(1) … … 423 422 %type<stmt> with_statement 424 423 %type<expr> with_clause_opt 425 %type<stmt> corun_statement cofor_statement426 424 %type<stmt> exception_statement 427 425 %type<clause> handler_clause finally_clause … … 1142 1140 | waitfor_statement 1143 1141 | waituntil_statement 1144 | corun_statement1145 | cofor_statement1146 1142 | exception_statement 1147 1143 | enable_disable_statement … … 1717 1713 wor_waituntil_clause %prec THEN 1718 1714 { $$ = new StatementNode( build_waituntil_stmt( yylloc, $1 ) ); } 1719 ;1720 1721 corun_statement:1722 CORUN statement1723 { SemanticError( yylloc, "corun statement is currently unimplemented." ); $$ = nullptr; }1724 ;1725 1726 cofor_statement:1727 COFOR '(' for_control_expression_list ')' statement1728 { SemanticError( yylloc, "cofor statement is currently unimplemented." ); $$ = nullptr; }1729 1715 ; 1730 1716
Note: See TracChangeset
for help on using the changeset viewer.