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.AST
parse_postfix(self) -> astx.AST
title: Parse postfix member access and method calls.
returns:
  type: astx.AST
parse_expression(self) -> astx.AST
title: Parse an expression.
returns:
  type: astx.AST
parse_int_expr(self) -> astx.LiteralInt32
title: Parse the integer expression.
returns:
  type: astx.LiteralInt32
parse_float_expr(self) -> astx.LiteralFloat32
title: Parse the float expression.
returns:
  type: astx.LiteralFloat32
parse_string_expr(self) -> astx.LiteralString
title: Parse the string expression.
returns:
  type: astx.LiteralString
parse_char_expr(self) -> astx.LiteralUTF8Char
title: Parse the char expression.
returns:
  type: astx.LiteralUTF8Char
parse_bool_expr(self) -> astx.LiteralBoolean
title: Parse the bool expression.
returns:
  type: astx.LiteralBoolean
parse_none_expr(self) -> astx.LiteralNone
title: Parse the none expression.
returns:
  type: astx.LiteralNone
parse_paren_expr(self) -> astx.AST
title: Parse the parenthesis expression.
returns:
  type: astx.AST
parse_array_expr(self) -> astx.Literal
title: Parse list and tensor literals.
returns:
  type: astx.Literal
parse_identifier_expr(self) -> astx.AST
title: Parse the identifier expression.
returns:
  type: astx.AST
parse_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.AST
parse_dataframe_constructor(self) -> astx.DataFrameLiteral
title: Parse a builtin DataFrame constructor expression.
returns:
  type: astx.DataFrameLiteral
parse_unary(self) -> astx.AST
title: Parse a unary expression.
returns:
  type: astx.AST
parse_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