Documentation
¶
Index ¶
- type ArrayExpr
- type ArrayValue
- type AttributeExpr
- type BooleanExpr
- type CallExpr
- type ConditionExpr
- type DefineExpr
- type Evaluator
- type Expression
- type IncludeExpr
- type LambdaExpr
- type MapExpr
- type MapValue
- type NumberExpr
- type OperationExpr
- type OutputExpr
- type PathExpr
- type Position
- type Scope
- type StringExpr
- type StringValue
- type Value
- type VarExpr
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArrayExpr ¶
type ArrayExpr struct {
Position
Exprs []Expression
}
type ArrayValue ¶
func (ArrayValue) Boolean ¶
func (obj ArrayValue) Boolean() (bool, error)
func (ArrayValue) JSON ¶
func (obj ArrayValue) JSON() any
func (ArrayValue) Link ¶
func (obj ArrayValue) Link(resname string) error
type AttributeExpr ¶
type AttributeExpr struct {
Position
Base Expression
Name string
}
type BooleanExpr ¶
func (BooleanExpr) Boolean ¶
func (obj BooleanExpr) Boolean() (bool, error)
func (BooleanExpr) JSON ¶
func (obj BooleanExpr) JSON() any
func (BooleanExpr) Link ¶
func (obj BooleanExpr) Link(string) error
type CallExpr ¶
type CallExpr struct {
Position
Base Expression
Args []Expression
}
type ConditionExpr ¶
type ConditionExpr struct {
Position
Cond Expression
Truly Expression
Falsy Expression
}
func (ConditionExpr) JSON ¶
func (obj ConditionExpr) JSON() any
type DefineExpr ¶
type DefineExpr struct {
Position
Define map[string]Expression
Expr Expression
}
func (DefineExpr) JSON ¶
func (obj DefineExpr) JSON() any
type Expression ¶
type Expression interface {
Pos() string
Resolve(scope Scope, ev *Evaluator) (Value, []PathExpr, error)
// contains filtered or unexported methods
}
unresolved value
type IncludeExpr ¶
type IncludeExpr struct {
Position
Name Expression
}
type LambdaExpr ¶
type LambdaExpr struct {
Position
Args []string
Expr Expression
}
func (LambdaExpr) Boolean ¶
func (obj LambdaExpr) Boolean() (bool, error)
func (LambdaExpr) JSON ¶
func (obj LambdaExpr) JSON() any
func (LambdaExpr) Link ¶
func (obj LambdaExpr) Link(resultname string) error
type MapExpr ¶
type MapExpr struct {
Position
Extends []Expression
Exprs []Expression
}
type NumberExpr ¶
func (NumberExpr) Boolean ¶
func (obj NumberExpr) Boolean() (bool, error)
func (NumberExpr) JSON ¶
func (obj NumberExpr) JSON() any
func (NumberExpr) Link ¶
func (obj NumberExpr) Link(string) error
type OperationExpr ¶
type OperationExpr struct {
Position
Operator string
Left Expression
Right Expression
}
func (OperationExpr) JSON ¶
func (obj OperationExpr) JSON() any
type OutputExpr ¶
type OutputExpr struct {
Position
Attrs Expression
}
type StringExpr ¶
type StringExpr struct {
Position
Content []string
Interp []Expression
}
func StringConstant ¶
func StringConstant(content string, origin string) StringExpr
func (StringExpr) JSON ¶
func (obj StringExpr) JSON() any
type StringValue ¶
func (StringValue) Boolean ¶
func (obj StringValue) Boolean() (bool, error)
func (StringValue) JSON ¶
func (obj StringValue) JSON() any
func (StringValue) Link ¶
func (obj StringValue) Link(string) error
type Value ¶
type Value interface {
Pos() string
Link(resultname string) error
JSON() any
Boolean() (bool, error)
// contains filtered or unexported methods
}
resolved value
type VarExpr ¶
type VarExpr struct {
Position
Name string
Args []Expression
}
type Variable ¶
type Variable struct {
Expr Expression
Scope Scope
}
Click to show internal directories.
Click to hide internal directories.