astThis module contains the nodes which comprise the abstract syntax tree generated from parsed grammar text.
Warning
The content of this module should be treated as private.
While the code within this module is documented, it is not meant to be used by consumers of the package. Directly accessing and using any object or function within this module should be done with care. Breaking API changes within this module may not always cause a major version bump. The reason for this is that it is often necessary to update the AST in an API breaking way in order to add new features.
Bases: object
An internal assignment whereby a symbol is populated with a value of the specified type.
Bases: ASTNodeBase
A class representing the top level statement of the grammar text.
Bases: ASTNodeBase
The data type of the result of successful evaluation.
alias of BinaryExpressionBase
Bases: ExpressionBase
A base class for representing literal values from the grammar text.
Bases: BinaryExpressionBase
A class for representing addition expressions from the grammar text.
The data type of the result of successful evaluation.
Bases: BinaryExpressionBase
A class for representing subtraction expressions from the grammar text.
Added in version 3.5.0.
The data type of the result of successful evaluation.
Bases: BinaryExpressionBase
A class for representing arithmetic expressions from the grammar text such as multiplication and division.
The data type of the result of successful evaluation.
Bases: ComparisonExpression
A class for representing arithmetic comparison expressions from the grammar text such as less-than-or-equal-to and greater-than.
The data type of the result of successful evaluation.
Bases: BinaryExpressionBase
A class for representing bitwise arithmetic expressions from the grammar text such as XOR and shifting operations.
The data type of the result of successful evaluation.
Bases: BitwiseExpression
The data type of the result of successful evaluation.
Bases: BinaryExpressionBase
A class for representing comparison expressions from the grammar text such as equality checks.
The data type of the result of successful evaluation.
Bases: BinaryExpressionBase
A class for representing logical expressions from the grammar text such as “and” and “or”.
The data type of the result of successful evaluation.
Bases: _CollectionMixin, LiteralExpressionBase
Literal array expressions containing 0 or more sub-expressions.
The data type of the result of successful evaluation.
Bases: LiteralExpressionBase
Literal boolean expressions representing True or False.
The data type of the result of successful evaluation.
Bases: LiteralExpressionBase
Literal bytes expressions representing a binary string. This expression type always evaluates to true when not empty.
The data type of the result of successful evaluation.
Bases: LiteralExpressionBase
Literal datetime expressions representing a specific point in time. This expression type always evaluates to true.
The data type of the result of successful evaluation.
Bases: LiteralExpressionBase
Literal float expressions representing numerical values.
The data type of the result of successful evaluation.
Bases: LiteralExpressionBase
Literal mapping expression representing a function.
The data type of the result of successful evaluation.
Bases: LiteralExpressionBase
Literal mapping expression representing a set of associations between keys and values.
The data type of the result of successful evaluation.
Bases: LiteralExpressionBase
Literal null expressions representing null values. This expression type always evaluates to false.
The data type of the result of successful evaluation.
Bases: _CollectionMixin, LiteralExpressionBase
Literal set expressions containing 0 or more sub-expressions.
The data type of the result of successful evaluation.
Bases: ExpressionBase
The data type of the result of successful evaluation.
Bases: ExpressionBase
An expression used to test whether an item exists within a container.
The data type of the result of successful evaluation.
Bases: ExpressionBase
A class representing an expression in which name is retrieved as an attribute of object.
The data type of the result of successful evaluation.
Bases: ExpressionBase
A class representing an expression in which an item is retrieved from a container object.
The data type of the result of successful evaluation.
Bases: ExpressionBase
A class representing an expression in which a range of items is retrieved from a container object.
The data type of the result of successful evaluation.
Bases: ExpressionBase
A class representing a symbol name to be resolved at evaluation time with the help of a
Context object.
The data type of the result of successful evaluation.
Bases: ExpressionBase
A class for representing ternary expressions from the grammar text. These involve evaluating condition
before evaluating either case_true or case_false based on the results.
The data type of the result of successful evaluation.
Bases: ExpressionBase
A class for representing unary expressions from the grammar text. These involve a single operator on the left side.
The data type of the result of successful evaluation.