10.9. DECS, AST block to loop
The AST_BLOCK_TO_LOOP module provides an AST transformation macro that converts block-based iteration patterns into explicit loop constructs. Used internally by other macro libraries for optimization.
All functions and symbols are in “ast_block_to_loop” module, use require to get access to it.
require daslib/ast_block_to_loop
10.9.1. Block to loop conversion
- convert_block_to_loop(blk: Expression?; failOnReturn: bool; replaceReturnWithContinue: bool; requireContinueCond: bool )
Converts closure block to loop.
- Arguments:
blk : Expression?
failOnReturn : bool
replaceReturnWithContinue : bool
requireContinueCond : bool