arx.parser.expressions
arx.parser.expressions
Source: packages/arx/src/arx/parser/expressions.py
title: Expression parser mixin.
summary: >-
Parse primary, postfix, unary, and binary expressions plus literal and call
syntax.Classes
ExpressionParserMixin(ParserMixinBase)
title: Expression parser mixin.Methods
parse_primary(self) -> astx.AST
title: Parse the primary expression.
returns:
type: astx.ASTparse_postfix(self) -> astx.AST
title: Parse postfix member access and method calls.
returns:
type: astx.ASTparse_expression(self) -> astx.AST
title: Parse an expression.
returns:
type: astx.ASTparse_int_expr(self) -> astx.LiteralInt32
title: Parse the integer expression.
returns:
type: astx.LiteralInt32parse_float_expr(self) -> astx.LiteralFloat32
title: Parse the float expression.
returns:
type: astx.LiteralFloat32parse_string_expr(self) -> astx.LiteralString
title: Parse the string expression.
returns:
type: astx.LiteralStringparse_char_expr(self) -> astx.LiteralUTF8Char
title: Parse the char expression.
returns:
type: astx.LiteralUTF8Charparse_bool_expr(self) -> astx.LiteralBoolean
title: Parse the bool expression.
returns:
type: astx.LiteralBooleanparse_none_expr(self) -> astx.LiteralNone
title: Parse the none expression.
returns:
type: astx.LiteralNoneparse_paren_expr(self) -> astx.AST
title: Parse the parenthesis expression.
returns:
type: astx.ASTparse_array_expr(self) -> astx.Literal
title: Parse list and tensor literals.
returns:
type: astx.Literalparse_identifier_expr(self) -> astx.AST
title: Parse the identifier expression.
returns:
type: astx.ASTparse_subscript_expr(self, base: astx.AST) -> astx.AST
title: Parse one postfix subscript or tensor index expression.
parameters:
base:
type: astx.AST
returns:
type: astx.ASTparse_dataframe_constructor(self) -> astx.DataFrameLiteral
title: Parse a builtin DataFrame constructor expression.
returns:
type: astx.DataFrameLiteralparse_unary(self) -> astx.AST
title: Parse a unary expression.
returns:
type: astx.ASTparse_bin_op_rhs(self, expr_prec: int, lhs: astx.AST) -> astx.AST
title: Parse a binary expression rhs.
parameters:
expr_prec:
type: int
lhs:
type: astx.AST
returns:
type: astx.AST