Documentation ¶
Overview ¶
Package std provides built-in expression resolvers.
Index ¶
- Variables
- func Core(sym string) *exp.Spec
- func Decl(sym string) *exp.Spec
- func DefaultResl(x CallCtx) (exp.El, error)
- func SpecDX(sig string, x Evaler) *exp.Spec
- func SpecDXX(sig string, x Evaler) *exp.Spec
- func SpecRX(sig string, r, x Evaler) *exp.Spec
- func SpecXX(sig string, x Evaler) *exp.Spec
- type CallCtx
- type Evaler
- type SpecImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExpectNumer = cor.StrError("expected numer argument")
View Source
var Std = exp.Builtin{Core, Decl}
Std is an environment that includes both the Core and Decl lookup function.
Functions ¶
func Core ¶
Core is a resolver lookup for all standard forms, not involving declarations or functions.
Logic forms:
and, or, bool, not, if
Arithmetic forms:
add, mul, sub, div, rem, abs, neg, min, max
Comparison forms:
eq, ne, equal, in, ni, lt, le, gt, ge
Other forms:
len, with, dyn, con, cat, apd, set
Types ¶
Click to show internal directories.
Click to hide internal directories.