class

Expr

@Js
const abstract class Expr : Obj

Expr is the base class for Axon AST nodes. All expressions are immutable classes safe to share between threads once parsed.

methods encode

Encode the AST into a tree of dicts

toStr

Print to string

loc

Location of this expression in source code or Loc.unknown

eval

Evaluate this expression

encode Dict encode()

Encode the AST into a tree of dicts. See parseAst().

eval abstract Obj? eval(AxonContext cx)

Evaluate this expression.

loc abstract Loc loc()

Location of this expression in source code or Loc.unknown.

toStr virtual Str toStr()

Print to string

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST