API reference
python:arx:arx.parser.exceptions.ExceptionParserMixin
class ExceptionParserMixin
Source: packages/arx/src/arx/parser/exceptions.py:17
Parse raising and structured exception regions.
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
-
exception_clause — Consume line markers only when a same-level clause follows.
-
exception_expression — Require an expression rather than a statement-valued operand.
-
exception_type_reference — Parse a nominal or module-qualified handler type reference.
-
parse_except_clause — Parse a handler with optional nominal types and local binding.
-
parse_raise_stmt — Parse an optional exception and optional explicit cause.
-
parse_statement — Keep exception, resource, and loop statements out of operands.
-
parse_try_stmt — Parse ordered handlers, optional else, and optional finally.