Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Or = &logicSpec{impl("<form@or tupl? bool>"), false, false, true} Ok = &logicSpec{impl("<form@ok tupl? bool>"), false, true, false} And = &logicSpec{impl("<form@and tupl? bool>"), true, true, false} Not = &logicSpec{impl("<form@not tupl? bool>"), true, true, true} )
View Source
var ( Eq = &compSpec{impl("<form@eq any tupl bool>"), 0, false} Equal = &compSpec{impl("<form@equal any tupl bool>"), 0, false} Ne = &compSpec{impl("<form@ne any tupl bool>"), 0, true} Lt = &compSpec{impl("<form@lt <alt num str span time> tupl|_ bool>"), -1, false} Ge = &compSpec{impl("<form@ge <alt num str span time> tupl|_ bool>"), -1, true} Gt = &compSpec{impl("<form@gt <alt num str span time> tupl|_ bool>"), 1, false} Le = &compSpec{impl("<form@le <alt num str span time> tupl|_ bool>"), 1, true} )
View Source
var ( In = &inSpec{impl("<form@in any tupl|list bool>"), false} Ni = &inSpec{impl("<form@ni any tupl|list bool>"), true} )
View Source
var Abs = &absSpec{impl("<form@abs num@ _>")}
View Source
var Add = &addSpec{impl("<form@add num@ tupl?|num _>")}
View Source
var Call = &callSpec{impl("<form@call spec tupl|exp lit|_>")}
View Source
var Cat = &catSpec{impl("<form@cat tupl str>")}
View Source
var Core = exp.Builtins(make(Specs).Add( Or, And, Ok, Not, Err, Add, Sub, Mul, Div, Rem, Abs, Neg, Min, Max, Eq, Ne, Lt, Ge, Gt, Le, In, Ni, Equal, If, Swt, Df, Cat, Sep, Xelf, Json, Make, Sel, Len, ))
Core is a builtin environment with foundational specs.
View Source
var Df = &dfSpec{impl("<form@df tupl|@1 @1!>")}
View Source
var Div = &divSpec{impl("<form@div num@ tupl|num _>")}
View Source
var Do = &doSpec{impl("<form@do tupl|exp @>")}
View Source
var Err = &errSpec{impl("<form@err tupl?|exp @>")}
View Source
var Fn = &fnSpec{impl("<form@fn tupl?|tag|typ exp|@1 spec|@1>")}
View Source
var Fold = &foldSpec{impl("<form@fold list|@1 @2 <func @2 @1 @2> @2>"), false}
View Source
var Foldr = &foldSpec{impl("<form@foldr list|@1 @2 <func @2 @1 @2> @2>"), true}
View Source
var If = &ifSpec{impl("<form@if <tupl cond:any then:exp|@1> else:exp?|@1 @1>")}
View Source
var Json = &rawSpec{impl("<form@json any raw>"), true}
View Source
var Len = &lenSpec{impl("<form@len <alt? list keyr str raw> int>")}
View Source
var Make = &makeSpec{impl("<form@make typ tupl?|exp lit|_>")}
View Source
var Max = &maxSpec{impl("<form@max num@ tupl?|num _>")}
View Source
var Min = &minSpec{impl("<form@min num@ tupl?|num _>")}
View Source
var Mul = &mulSpec{impl("<form@mul num@ tupl?|num _>")}
View Source
var Mut = &mutSpec{impl("<form@mut any@ tupl?|exp _>")}
View Source
var Neg = &negSpec{impl("<form@neg num@ _>")}
View Source
var Range = &rangeSpec{impl("<form@range n:int f?:<func int @1> list|@1>")}
View Source
var Rem = &remSpec{impl("<form@rem int int int>")}
View Source
var Sel = &selSpec{impl("<form@sel sym <tupl?|alt str int> @>")}
View Source
var Sep = &sepSpec{impl("<form@sep str tupl str>")}
View Source
var Std = exp.Builtins(make(Specs).AddMap(Core).Add( Do, Call, With, Mut, Fn, Fold, Foldr, Range, ))
Std extends the core environment with commonly used specs.
View Source
var Sub = &subSpec{impl("<form@sub num@ tupl|num _>")}
View Source
var Swt = &swtSpec{impl("<form@swt @1 <tupl case:@1 then:exp|@2> else:exp?|@2 @2>")}
View Source
var With = &withSpec{impl("<form@with dot?:any lets:tupl?|tag exp|@1 @1>")}
View Source
var Xelf = &rawSpec{impl("<form@xelf any raw>"), false}
Functions ¶
This section is empty.
Types ¶
type DotEnv ¶
DotEnv is a child scope that supports relative paths into either a dot literals or name values.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.