Documentation ¶
Index ¶
- Constants
- Variables
- func CheckBool(v env.Value) (env.Value, error)
- func CheckNumber(v env.Value) (env.Value, error)
- func CheckString(v env.Value) (env.Value, error)
- func DefaultError(msg string) error
- func ErrorFromError(err error) error
- func ErrorWithCode(msg string, code int) error
- func IsSet(list []Option, name string) (int, error)
- func IsValid(list []Option) error
- type Builtin
- type ChannelHandler
- type CheckFunc
- type CommandFunc
- type CommandHandler
- type DeferHandler
- type Ensemble
- type Error
- type Executer
- func MakeArray() Executer
- func MakeChan() Executer
- func MakeClock() Executer
- func MakeFile() Executer
- func MakeInfo() Executer
- func MakeInterp() Executer
- func MakeList() Executer
- func MakeNamespace() Executer
- func MakeString() Executer
- func PrintArray() Executer
- func RunAbs() Executer
- func RunAcos() Executer
- func RunAdd() Executer
- func RunAppend() Executer
- func RunAsin() Executer
- func RunAtan() Executer
- func RunAtan2() Executer
- func RunBool() Executer
- func RunBreak() Executer
- func RunCatch() Executer
- func RunCeil() Executer
- func RunChdir() Executer
- func RunClose() Executer
- func RunContinue() Executer
- func RunCos() Executer
- func RunCosh() Executer
- func RunDecr() Executer
- func RunDefer() Executer
- func RunDegree() Executer
- func RunDiv() Executer
- func RunDouble() Executer
- func RunEntier() Executer
- func RunEof() Executer
- func RunEq() Executer
- func RunError() Executer
- func RunEval() Executer
- func RunExit() Executer
- func RunExp() Executer
- func RunExpr() Executer
- func RunFCopy() Executer
- func RunFileCat() Executer
- func RunFileForeachLine() Executer
- func RunFileWriteFile() Executer
- func RunFloor() Executer
- func RunFmod() Executer
- func RunFor() Executer
- func RunForeach() Executer
- func RunGe() Executer
- func RunGets() Executer
- func RunGlobal() Executer
- func RunGt() Executer
- func RunHelp() Executer
- func RunHypot() Executer
- func RunIf() Executer
- func RunIncr() Executer
- func RunInt() Executer
- func RunIsqrt() Executer
- func RunLAppend() Executer
- func RunLAssign() Executer
- func RunLIndex() Executer
- func RunLInsert() Executer
- func RunLLength() Executer
- func RunLMap() Executer
- func RunLRange() Executer
- func RunLRepeat() Executer
- func RunLReplace() Executer
- func RunLReverse() Executer
- func RunLSearch() Executer
- func RunLSet() Executer
- func RunLSort() Executer
- func RunLe() Executer
- func RunList() Executer
- func RunLog() Executer
- func RunLog10() Executer
- func RunLt() Executer
- func RunMax() Executer
- func RunMin() Executer
- func RunMod() Executer
- func RunMul() Executer
- func RunNe() Executer
- func RunNot() Executer
- func RunOpen() Executer
- func RunPid() Executer
- func RunPow() Executer
- func RunPrefixAll() Executer
- func RunPrefixLongest() Executer
- func RunPrefixMatch() Executer
- func RunProc() Executer
- func RunPuts() Executer
- func RunPwd() Executer
- func RunRadian() Executer
- func RunRaise() Executer
- func RunRand() Executer
- func RunRead() Executer
- func RunRename() Executer
- func RunReturn() Executer
- func RunRound() Executer
- func RunSeek() Executer
- func RunSet() Executer
- func RunSin() Executer
- func RunSinh() Executer
- func RunSource() Executer
- func RunSplit() Executer
- func RunSqrt() Executer
- func RunSrand() Executer
- func RunSub() Executer
- func RunSwitch() Executer
- func RunTan() Executer
- func RunTanh() Executer
- func RunTell() Executer
- func RunThrow() Executer
- func RunTime() Executer
- func RunTry() Executer
- func RunTypeOf() Executer
- func RunUnknown() Executer
- func RunUnset() Executer
- func RunUplevel() Executer
- func RunUpvar() Executer
- func RunVariable() Executer
- func RunWhile() Executer
- func RunWide() Executer
- type InterpHandler
- type Interpreter
- type LinkHandler
- type NamespaceHandler
- type Option
- type PrintHandler
- type ProcHandler
- type VariableHandler
Constants ¶
View Source
const ( ErrorOk int = iota ErrorErr ErrorRet ErrorBreak ErrorContinue )
Variables ¶
View Source
var ( ErrArgument = errors.New("wrong number of argument given") ErrExit = errors.New("exit") ErrReturn = errors.New("return") ErrBreak = errors.New("break") ErrContinue = errors.New("continue") )
View Source
var ErrType = errors.New("invalid type given")
Functions ¶
func DefaultError ¶
func ErrorFromError ¶
func ErrorWithCode ¶
Types ¶
type Builtin ¶
type Builtin struct { Name string Usage string Help string Safe bool Arity int Variadic bool Scope bool Run CommandFunc Options []Option }
type ChannelHandler ¶
type ChannelHandler interface { Interpreter Open(string, string) (string, error) Close(string) error Eof(string) (bool, error) Channels() []string Seek(string, int, int) (int64, error) Tell(string) (int64, error) Gets(string) (string, error) Read(string, int) (string, error) Copy(string, string, int) (int64, error) PrintHandler }
type CheckFunc ¶
func CombineCheck ¶
type CommandFunc ¶
type CommandHandler ¶
type DeferHandler ¶
type DeferHandler interface { Interpreter RegisterDefer(string) error }
type Executer ¶
type Executer interface { GetName() string IsSafe() bool Scoped() bool Execute(Interpreter, []env.Value) (env.Value, error) }
func MakeInterp ¶
func MakeInterp() Executer
func MakeNamespace ¶
func MakeNamespace() Executer
func MakeString ¶
func MakeString() Executer
func PrintArray ¶
func PrintArray() Executer
func RunContinue ¶
func RunContinue() Executer
func RunFileCat ¶
func RunFileCat() Executer
func RunFileForeachLine ¶
func RunFileForeachLine() Executer
func RunFileWriteFile ¶
func RunFileWriteFile() Executer
func RunForeach ¶
func RunForeach() Executer
func RunLAppend ¶
func RunLAppend() Executer
func RunLAssign ¶
func RunLAssign() Executer
func RunLInsert ¶
func RunLInsert() Executer
func RunLLength ¶
func RunLLength() Executer
func RunLRepeat ¶
func RunLRepeat() Executer
func RunLReplace ¶
func RunLReplace() Executer
func RunLReverse ¶
func RunLReverse() Executer
func RunLSearch ¶
func RunLSearch() Executer
func RunPrefixAll ¶
func RunPrefixAll() Executer
func RunPrefixLongest ¶
func RunPrefixLongest() Executer
func RunPrefixMatch ¶
func RunPrefixMatch() Executer
func RunUnknown ¶
func RunUnknown() Executer
func RunUplevel ¶
func RunUplevel() Executer
func RunVariable ¶
func RunVariable() Executer
type InterpHandler ¶
type Interpreter ¶
type NamespaceHandler ¶
type PrintHandler ¶
type ProcHandler ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.