API reference
python:arx:arx.parser.control_flow.ControlFlowParserMixin
class ControlFlowParserMixin
Source: packages/arx/src/arx/parser/control_flow.py:37
Control-flow parser mixin.
Attributes
-
bin_op_precedence — Type: dict[str, int]
-
indent_level — Type: int
-
list_scopes — Type: list[set[str]]
-
known_class_names — Type: set[str]
-
imported_type_names — Type: set[str]
-
namespace_roots — Type: set[str]
-
builtin_type_bindings — Type: dict[str, astx.DataType]
-
tensor_scopes — Type: list[dict[str, TensorBinding | None]]
-
dataframe_scopes — Type: list[dict[str, DataFrameBinding | None]]
-
return_type_scopes — Type: list[astx.DataType]
-
template_type_scopes — Type: list[dict[str, astx.DataType]]
-
type_aliases — Type: dict[str, astx.DataType]
-
value_scopes — Type: list[set[str]]
-
tokens — Type: TokenList
Methods
-
_looks_like_removed_for_range_header — Return whether the current token begins the removed colon range.
-
_parse_for_iterable_stmt — Parse one generic for-in loop over a list-valued expression.
-
parse_assert_stmt — Parse one fatal assertion statement.
-
parse_block — Parse a block of nodes.
-
parse_for_count_stmt — Parse count-style for loop.
-
parse_for_stmt — Parse a for statement.
-
parse_if_clause — Parse one if or elif condition and its scoped body.
-
parse_if_stmt — Parse an if/elif chain and optional final else as nested IfStmt.
-
parse_inline_var_declaration — Parse inline variable declaration used by count-style for loops.
-
parse_loop_transfer — Parse break or continue without accepting a trailing operand.
-
parse_return_function — Parse a return statement.
-
parse_var_expr — Parse name-first variables with explicit or inferred types.
-
parse_while_stmt — Parse a while statement.
-
parse_with_stmt — Parse one manager expression and an optional entered-value name.