Skip to main content

Module statements

Module statements 

Source
Expand description

Statement Bytecode Generation Module

Functionsยง

evaluate_expression_with_context ๐Ÿ”’
Evaluates an expression with access to macro invocation context for resolving <arg> calls
statement_gen
Generates the respective Bytecode for a given Statement Returns a tuple of (bytes, spans) where spans are optional source positions
substitute_in_expression ๐Ÿ”’
Substitute loop variable in an expression
substitute_in_macro_args ๐Ÿ”’
Substitute loop variable in macro invocation arguments, including nested invocations
substitute_loop_variable_in_statement ๐Ÿ”’
Substitute loop variable in a single statement
substitute_loop_variable_in_statements ๐Ÿ”’
Substitute loop variable in a list of statements

Type Aliasesยง

StatementGenResult ๐Ÿ”’
Type alias for statement generation result: (bytes, spans)