Documentation ¶
Index ¶
- Variables
- func Add(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func And(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Caps(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Ceil(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Contains(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Cos(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Darken(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Dict(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Dir(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Div(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Dump(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func EQ(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Error(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Eval(scope tokens.Scope, key string, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func EvalArgs(scope tokens.Scope, args []tokens.Token) ([]tokens.Token, error)
- func EvalFun(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Filter(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Float(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Floor(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func GE(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func GT(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Get(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func HasFun(key string) bool
- func IfElse(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Int(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Invert(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsAnonFun(t tokens.Token) bool
- func IsBool(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsColor(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsDict(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsFloat(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsFun(t tokens.Token) bool
- func IsFunction(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsInt(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsList(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsNull(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsSame(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsString(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsType(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func IsVar(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Items(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Join(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Keys(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func LE(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func LT(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Len(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Lighten(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func List(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func ListValidNames() string
- func Lower(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Map(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Max(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func MaxScreenHeight(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func MaxScreenWidth(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Merge(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func MergeStringDictsInplace(scope tokens.Scope, res *tokens.StringDict, new *tokens.StringDict, ...) error
- func Min(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func MinScreenHeight(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func MinScreenWidth(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Mix(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Mod(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Mul(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func NE(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Neg(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func NewFun(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Not(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Or(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Path(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Pi(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Pow(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Px(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Rad(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Rand(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Replace(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Round(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func SVGPathPos(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Seq(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Sin(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Slice(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Sort(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Split(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Sqrt(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Str(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Sub(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Tan(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func UniqueID(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Upper(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Values(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Xor(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func Year(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- type AnonFun
- func (f *AnonFun) Context() context.Context
- func (f *AnonFun) Dump(indent string) string
- func (f *AnonFun) Eval(scope tokens.Scope) (tokens.Token, error)
- func (f *AnonFun) EvalFun(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func (a *AnonFun) IsSame(other tokens.Token) bool
- func (f *AnonFun) Len() int
- type BuiltInFun
- func (f *BuiltInFun) Context() context.Context
- func (f *BuiltInFun) Dump(indent string) string
- func (f *BuiltInFun) Eval(scope tokens.Scope) (tokens.Token, error)
- func (f *BuiltInFun) EvalFun(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
- func (a *BuiltInFun) IsSame(other tokens.Token) bool
- func (f *BuiltInFun) Len() int
- type BuiltinFunction
- type Fun
- type LambdaScope
- type Var
Constants ¶
This section is empty.
Variables ¶
View Source
var NewLambdaScope func(fnScope tokens.Scope, callerScope tokens.Scope) LambdaScope
must be registered by directives package
Functions ¶
func Caps ¶
smart capitaloization of titles ref:https://capitalizemytitle.com/#capitalizationrules
func IsFunction ¶
func ListValidNames ¶
func ListValidNames() string
func MaxScreenHeight ¶
func MaxScreenWidth ¶
func MergeStringDictsInplace ¶
func MergeStringDictsInplace(scope tokens.Scope, res *tokens.StringDict, new *tokens.StringDict, ctx context.Context) error
func MinScreenHeight ¶
func MinScreenWidth ¶
func SVGPathPos ¶
func Seq ¶
seq(last) // starting at 0 and going up seq(first, last) // increasing seq(first, incr, last) (similar to [first:incr:last] in formula form)
Types ¶
type AnonFun ¶
type AnonFun struct {
// contains filtered or unexported fields
}
func NewAnonFun ¶
type BuiltInFun ¶
type BuiltInFun struct {
// contains filtered or unexported fields
}
func NewBuiltInFun ¶
func NewBuiltInFun(name string, ctx context.Context) *BuiltInFun
func (*BuiltInFun) Context ¶
func (f *BuiltInFun) Context() context.Context
func (*BuiltInFun) Dump ¶
func (f *BuiltInFun) Dump(indent string) string
func (*BuiltInFun) Len ¶
func (f *BuiltInFun) Len() int
type BuiltinFunction ¶
type BuiltinFunction func(scope tokens.Scope, args []tokens.Token, ctx context.Context) (tokens.Token, error)
args are evaluated outside PreEval functions, but scope is needed to check Permissive()
type Fun ¶
type LambdaScope ¶
Source Files ¶
- Add.go
- And.go
- AnonFun.go
- BuiltInFun.go
- Case.go
- Contains.go
- Darken.go
- Dict.go
- Dir.go
- Div.go
- Dump.go
- Error.go
- Filter.go
- Float.go
- Fun.go
- Get.go
- IfElse.go
- Int.go
- Invert.go
- IsType.go
- Items.go
- Join.go
- Keys.go
- LambdaEnv.go
- Len.go
- Lighten.go
- List.go
- Map.go
- Merge.go
- Mix.go
- Mod.go
- Mul.go
- Neg.go
- Not.go
- Or.go
- Path.go
- Px.go
- Rand.go
- Replace.go
- SVGPathPos.go
- Seq.go
- Slice.go
- Sort.go
- Split.go
- Str.go
- Sub.go
- UniqueID.go
- Values.go
- Var.go
- Xor.go
- compare.go
- functions.go
- math.go
- styles.go
- time.go
Click to show internal directories.
Click to hide internal directories.