Documentation ¶
Overview ¶
Package eval handles evaluation of parsed Elvish code and provides runtime facilities.
Index ¶
- Constants
- Variables
- func Chdir(path string, store AddDirer) error
- func ClosePorts(ports []*Port)
- func ComposeExceptionsFromPipeline(excs []*Exception) error
- func EachExternal(f func(string))
- func FromJSONInterface(v interface{}) interface{}
- func MakeVariableRef(explode bool, ns string, name string) string
- func NewExternalCmdExit(name string, ws syscall.WaitStatus, pid int) error
- func NewVariableFromPtr(ptr interface{}) vartypes.Variable
- func ParseIncompleteVariableRef(text string) (explode bool, ns string, name string)
- func ParseVariableRef(text string) (explode bool, ns string, name string)
- func PurelyEvalCompound(cn *parse.Compound) (string, error)
- func RunTests(t *testing.T, evalTests []Test, makeEvaler func() *Evaler)
- func ScanArgs(src []interface{}, dstPtrs ...interface{})
- func ScanArgsOptionalInput(ec *Frame, src []interface{}, dstArgs ...interface{}) func(func(interface{}))
- func ScanArgsVariadic(src []interface{}, dstPtrs ...interface{})
- func ScanOpts(m map[string]interface{}, opts ...OptToScan)
- func ScanOptsToStruct(m map[string]interface{}, structPtr interface{})
- func SplitIncompleteVariableRef(text string) (explodePart, nsPart, name string)
- func SplitVariableRef(text string) (explodePart, nsPart, name string)
- func TakeNoArg(args []interface{})
- func TakeNoOpt(opts map[string]interface{})
- type AddDirer
- type BuiltinFn
- type Callable
- type Closure
- type CompilationError
- type Editor
- type EnvList
- type Evaler
- func (ev *Evaler) Close()
- func (ev *Evaler) Compile(n *parse.Chunk, src *Source) (Op, error)
- func (ev *Evaler) EachNsInTop(f func(s string))
- func (ev *Evaler) EachVariableInTop(ns string, f func(s string))
- func (ev *Evaler) Eval(op Op, src *Source) error
- func (ev *Evaler) EvalWithPorts(ports []*Port, op Op, src *Source) error
- func (ev *Evaler) InstallBundled(name, src string)
- func (ev *Evaler) InstallDaemonClient(client *daemon.Client)
- func (ev *Evaler) InstallModule(name string, mod Ns)
- func (ev *Evaler) PurelyEvalCompound(cn *parse.Compound) (string, error)
- func (ev *Evaler) PurelyEvalPartialCompound(cn *parse.Compound, upto *parse.Indexing) (string, error)
- func (ev *Evaler) PurelyEvalPrimary(pn *parse.Primary) interface{}
- func (ev *Evaler) SetArgs(args []string)
- func (ev *Evaler) SetLibDir(libDir string)
- func (ev *Evaler) Source(name, path string) error
- func (ev *Evaler) SourceText(src *Source) error
- type Exception
- type ExternalCmd
- type ExternalCmdExit
- type Flow
- type Frame
- func (ev Frame) EachNsInTop(f func(s string))
- func (ev Frame) EachVariableInTop(ns string, f func(s string))
- func (ctx *Frame) ExecAndUnwrap(desc string, op ValuesOp) ValuesUnwrapper
- func (ec *Frame) InputChan() chan interface{}
- func (ec *Frame) InputFile() *os.File
- func (ec *Frame) Interrupts() <-chan struct{}
- func (ec *Frame) IsInterrupted() bool
- func (ec *Frame) IterateInputs(f func(interface{}))
- func (ec *Frame) OutputChan() chan<- interface{}
- func (ec *Frame) OutputFile() *os.File
- func (ec *Frame) PCall(f Callable, args []interface{}, opts map[string]interface{}) (err error)
- func (ec *Frame) PCaptureOutput(fn Callable, args []interface{}, opts map[string]interface{}) (vs []interface{}, err error)
- func (ec *Frame) PCaptureOutputInner(fn Callable, args []interface{}, opts map[string]interface{}, ...) error
- func (ec *Frame) PEval(op Op) (err error)
- func (ec *Frame) ResolveVar(n, name string) vartypes.Variable
- func (ctx *Frame) Unwrap(desc string, begin, end int, vs []interface{}) ValuesUnwrapper
- type GlobFlag
- type GlobPattern
- type Inputs
- type LValuesOp
- type LValuesOpBody
- type Ns
- func (ns Ns) Add(name string, v vartypes.Variable) Ns
- func (ns Ns) AddBuiltinFn(nsName, name string, impl interface{}) Ns
- func (ns Ns) AddBuiltinFns(nsName string, fns map[string]interface{}) Ns
- func (ns Ns) AddFn(name string, v Callable) Ns
- func (ns Ns) AddNs(name string, v Ns) Ns
- func (ns Ns) Clone() Ns
- func (ns Ns) Equal(rhs interface{}) bool
- func (ns Ns) Get(k interface{}) (interface{}, bool)
- func (ns Ns) Hash() uint32
- func (Ns) Kind() string
- func (ns Ns) Repr(int) string
- type Op
- type OpBody
- type OptToScan
- type Options
- type PipelineError
- type Port
- type PwdVariable
- type Source
- type SrcType
- type Test
- type ValueUnwrapper
- type ValuesOp
- type ValuesOpBody
- type ValuesUnwrapper
- Bugs
Constants ¶
const ( // FnSuffix is the suffix for the variable names of functions. Defining a // function "foo" is equivalent to setting a variable named "foo~", and vice // versa. FnSuffix = "~" // NsSuffix is the suffix for the variable names of namespaces. Defining a // namespace foo is equivalent to setting a variable named "foo:", and vice // versa. NsSuffix = ":" )
Variables ¶
var ( // ErrNoLibDir is thrown by "use" when the Evaler does not have a library // directory. ErrNoLibDir = errors.New("Evaler does not have a lib directory") // ErrRelativeUseNotFromMod is thrown by "use" when relative use is used // not from a module ErrRelativeUseNotFromMod = errors.New("Relative use not from module") // ErrRelativeUseGoesOutsideLib is thrown when a relative use goes out of // the library directory. ErrRelativeUseGoesOutsideLib = errors.New("Module outside library directory") )
var ( ErrBadGlobPattern = errors.New("bad GlobPattern; elvish bug") ErrCannotDetermineUsername = errors.New("cannot determine user name from glob pattern") )
Errors thrown when globbing.
var ( ErrCanOnlyAssignList = errors.New("can only assign compatible values") ErrPathMustBeString = errors.New("path must be string") ErrPathCannotContainColonZero = errors.New(`path cannot contain colon or \0`) )
Errors
var ( ErrExternalCmdOpts = errors.New("external commands don't accept elvish options") ErrCdNoArg = errors.New("implicit cd accepts no arguments") )
var ( ErrMustFollowWildcard = errors.New("must follow wildcard") ErrModifierMustBeString = errors.New("modifier must be string") ErrWildcardNoMatch = errors.New("wildcard has no match") )
var ( // ClosedChan is a closed channel, suitable for use as placeholder channel input. ClosedChan = make(chan interface{}) // BlackholeChan is channel writes onto which disappear, suitable for use as // placeholder channel output. BlackholeChan = make(chan interface{}) // DevNull is /dev/null. DevNull *os.File // DevNullClosedInput is a port made up from DevNull and ClosedChan, // suitable as placeholder input port. DevNullClosedChan *Port )
var ( ErrNoArgAccepted = errors.New("no argument accepted") ErrNoOptAccepted = errors.New("no option accepted") )
var ( // NoArgs is an empty argument list. It can be used as an argument to Call. NoArgs = []interface{}{} // NoOpts is an empty option map. It can be used as an argument to Call. NoOpts = map[string]interface{}{} )
var ErrArgs = errors.New("args error")
var ErrArityMismatch = errors.New("arity mismatch")
ErrArityMismatch is thrown by a closure when the number of arguments the user supplies does not match with what is required.
var ErrBadBase = errors.New("bad base")
ErrBadBase is thrown by the "base" builtin if the base is smaller than 2 or greater than 36.
var ErrImpure = errors.New("expression is impure")
var ErrInput = errors.New("input error")
var ErrInterrupted = errors.New("interrupted")
var ErrMoreThanOneRest = errors.New("more than one @ lvalue")
ErrMoreThanOneRest is returned when the LHS of an assignment contains more than one rest variables.
var ErrNotInSameGroup = errors.New("not in the same process group")
var ErrStoreNotConnected = errors.New("store not connected")
var IsBuiltinSpecial = map[string]bool{}
IsBuiltinSpecial is the set of all names of builtin special forms. It is intended for external consumption, e.g. the syntax highlighter.
var OK = &Exception{}
OK is a pointer to the zero value of Exception, representing the absence of exception.
Functions ¶
func Chdir ¶
Chdir changes the current directory. On success it also updates the PWD environment variable and records the new directory in the directory history. It returns nil as long as the directory changing part succeeds.
func ComposeExceptionsFromPipeline ¶
ComposeExceptionsFromPipeline takes a slice of Exception pointers and composes a suitable error. If all elements of the slice are either nil or OK, a nil is returned. If there is exactly non-nil non-OK Exception, it is returned. Otherwise, a PipelineError built from the slice is returned, with nil items turned into OK's for easier access from elvishscript.
func EachExternal ¶
func EachExternal(f func(string))
EachExternal calls f for each name that can resolve to an external command. TODO(xiaq): Windows support
func FromJSONInterface ¶
func FromJSONInterface(v interface{}) interface{}
FromJSONInterface converts a interface{} that results from json.Unmarshal to a Value.
func MakeVariableRef ¶
MakeVariableRef builds a variable reference.
func NewExternalCmdExit ¶
func NewExternalCmdExit(name string, ws syscall.WaitStatus, pid int) error
func NewVariableFromPtr ¶
NewVariableFromPtr creates a variable from a pointer. The variable is kept in sync with the value the pointer points to, using elvToGo and goToElv conversions when Get and Set.
func ParseIncompleteVariableRef ¶
ParseIncompleteVariableRef parses an incomplete variable reference.
func ParseVariableRef ¶
ParseVariableRef parses a variable reference.
func RunTests ¶
RunTests runs test cases. For each test case, a new Evaler is made by calling makeEvaler.
func ScanArgs ¶
func ScanArgs(src []interface{}, dstPtrs ...interface{})
ScanArgs scans arguments into pointers to supported argument types. If the arguments cannot be scanned, an error is thrown.
func ScanArgsOptionalInput ¶
func ScanArgsOptionalInput(ec *Frame, src []interface{}, dstArgs ...interface{}) func(func(interface{}))
ScanArgsOptionalInput is like ScanArgs, but the argument can contain an optional iterable value at the end containing inputs to the function. The return value is a function that iterates the iterable value if it exists, or the input otherwise.
func ScanArgsVariadic ¶
func ScanArgsVariadic(src []interface{}, dstPtrs ...interface{})
ScanArgsVariadic is like ScanArgs, but the last element of args should be a pointer to a slice, and the rest of arguments will be scanned into it.
func ScanOptsToStruct ¶
func ScanOptsToStruct(m map[string]interface{}, structPtr interface{})
ScanOptsToStruct scan options from a map like ScanOpts except the destination is a struct whose fields correspond to the options to be parsed. A field named FieldName corresponds to the option named field-name, unless the field has a explicit "name" tag.
func SplitIncompleteVariableRef ¶
SplitIncompleteVariableRef splits an incomplete variable reference into three parts: an optional explode operator (either "" or "@"), a namespace part, and a name part.
func SplitVariableRef ¶
SplitVariableRef splits a variable reference into three parts: an optional explode operator (either "" or "@"), a namespace part, and a name part.
Types ¶
type AddDirer ¶
type AddDirer interface { // AddDir adds a directory with the given weight to some storage. AddDir(dir string, weight float64) error }
AddDirer wraps the AddDir function.
type BuiltinFn ¶
type BuiltinFn struct {
// contains filtered or unexported fields
}
BuiltinFn uses reflection to wrap arbitrary Go functions into Elvish functions.
Parameters are passed following these rules:
- If the first parameter of function has type *Frame, it gets the current call frame.
- If (possibly after a *Frame parameter) the first parameter has type Options, it gets a map of options. If the function has not declared an Options parameter but is passed options, an error is thrown.
- If the last parameter is non-variadic and has type Inputs, it represents an optional parameter that contains the input to this function. If the argument is not supplied, the input channel of the Frame will be used to supply the inputs.
4. Other parameters are converted using elvToGo.
Return values go to the channel part of the stdout port, after being converted using goToElv. If the last return value has type error and is not nil, it is turned into an exception and no ouputting happens. If the last return value is a nil error, it is ignored.
func NewBuiltinFn ¶
NewBuiltinFn creates a new ReflectBuiltinFn instance.
type Callable ¶
type Callable interface { // Call calls the receiver in a Frame with arguments and options. Call(ec *Frame, args []interface{}, opts map[string]interface{}) error }
Callable wraps the Call method.
type Closure ¶
type Closure struct { ArgNames []string // The name for the rest argument. If empty, the function has fixed arity. RestArg string OptNames []string OptDefaults []interface{} Op Op Captured Ns SrcMeta *Source }
Closure is a closure defined in elvish script.
type CompilationError ¶
type CompilationError struct { Message string Context util.SourceRange }
CompilationError represents a compilation error and can pretty print it.
func (*CompilationError) Error ¶
func (ce *CompilationError) Error() string
func (*CompilationError) Pprint ¶
func (ce *CompilationError) Pprint(indent string) string
Pprint pretty-prints a compilation error.
type Editor ¶
type Editor interface {
Notify(string, ...interface{})
}
Editor is the interface that the line editor has to satisfy. It is needed so that this package does not depend on the edit package.
type EnvList ¶
EnvList is a variable whose value is constructed from an environment variable by splitting at pathListSeparator. Changes to it are also propagated to the corresponding environment variable. Its elements cannot contain pathListSeparator or \0; attempting to put any in its elements will result in an error.
type Evaler ¶
type Evaler struct { DaemonClient *daemon.Client Editor Editor // contains filtered or unexported fields }
Evaler is used to evaluate elvish sources. It maintains runtime context shared among all evalCtx instances.
func (*Evaler) Close ¶
func (ev *Evaler) Close()
Close releases resources allocated when creating this Evaler.
func (*Evaler) Compile ¶
Compile compiles elvish code in the global scope. If the error is not nil, it always has type CompilationError.
func (*Evaler) EachNsInTop ¶
func (ev *Evaler) EachNsInTop(f func(s string))
EachNsInTop calls the passed function for each namespace that can be used from the top context.
func (*Evaler) EachVariableInTop ¶
EachVariableInTop calls the passed function for each variable name in namespace ns that can be found from the top context.
func (*Evaler) Eval ¶
Eval sets up the Evaler with standard ports and evaluates an Op. The supplied name and text are used in diagnostic messages.
func (*Evaler) EvalWithPorts ¶
EvalWithPorts sets up the Evaler with the given ports and evaluates an Op. The supplied name and text are used in diagnostic messages.
func (*Evaler) InstallBundled ¶
InstallBundled installs a bundled module to the Evaler.
func (*Evaler) InstallDaemonClient ¶
InstallDaemonClient installs a daemon client to the Evaler.
func (*Evaler) InstallModule ¶
InstallModule installs a module to the Evaler so that it can be used with "use $name" from script.
func (*Evaler) PurelyEvalCompound ¶
func (*Evaler) PurelyEvalPartialCompound ¶
func (*Evaler) PurelyEvalPrimary ¶
PurelyEvalPrimary evaluates a primary node without causing any side effects. If this cannot be done, it returns nil.
Currently, only string literals and variables with no @ can be evaluated.
func (*Evaler) SetLibDir ¶
SetLibDir sets the library directory, in which external modules are to be found.
func (*Evaler) SourceText ¶
SourceText evaluates a chunk of elvish source.
type Exception ¶
type Exception struct { Cause error Traceback *util.SourceRange }
Exception represents an elvish exception. It is both a Value accessible to elvishscript, and the type of error returned by public facing evaluation methods like (*Evaler)PEval.
type ExternalCmd ¶
type ExternalCmd struct {
Name string
}
ExternalCmd is an external command.
func (ExternalCmd) Call ¶
func (e ExternalCmd) Call(ec *Frame, argVals []interface{}, opts map[string]interface{}) error
Call calls an external command.
func (ExternalCmd) Equal ¶
func (e ExternalCmd) Equal(a interface{}) bool
func (ExternalCmd) Hash ¶
func (e ExternalCmd) Hash() uint32
func (ExternalCmd) Kind ¶
func (ExternalCmd) Kind() string
func (ExternalCmd) Repr ¶
func (e ExternalCmd) Repr(int) string
type ExternalCmdExit ¶
type ExternalCmdExit struct { syscall.WaitStatus CmdName string Pid int }
ExternalCmdExit contains the exit status of external commands. If the command was stopped rather than terminated, the Pid field contains the pid of the process.
func (ExternalCmdExit) Error ¶
func (exit ExternalCmdExit) Error() string
type Frame ¶
type Frame struct { *Evaler // contains filtered or unexported fields }
Frame contains information of the current running function, aknin to a call frame in native CPU execution. A Frame is only modified during and very shortly after creation; new Frame's are "forked" when needed.
func NewTopFrame ¶
NewTopFrame creates a top-level Frame.
func (Frame) EachNsInTop ¶
func (ev Frame) EachNsInTop(f func(s string))
EachNsInTop calls the passed function for each namespace that can be used from the top context.
func (Frame) EachVariableInTop ¶
EachVariableInTop calls the passed function for each variable name in namespace ns that can be found from the top context.
func (*Frame) ExecAndUnwrap ¶
func (ctx *Frame) ExecAndUnwrap(desc string, op ValuesOp) ValuesUnwrapper
ExecAndUnwrap executes a ValuesOp and creates an Unwrapper for the obtained values.
func (*Frame) InputChan ¶
func (ec *Frame) InputChan() chan interface{}
InputChan returns a channel from which input can be read.
func (*Frame) Interrupts ¶
func (ec *Frame) Interrupts() <-chan struct{}
Interrupts returns a channel that is closed when an interrupt signal comes.
func (*Frame) IsInterrupted ¶
IsInterrupted reports whether there has been an interrupt.
func (*Frame) IterateInputs ¶
func (ec *Frame) IterateInputs(f func(interface{}))
IterateInputs calls the passed function for each input element.
func (*Frame) OutputChan ¶
func (ec *Frame) OutputChan() chan<- interface{}
OutputChan returns a channel onto which output can be written.
func (*Frame) OutputFile ¶
OutputFile returns a file onto which output can be written.
func (*Frame) PCaptureOutput ¶
func (*Frame) PCaptureOutputInner ¶
func (*Frame) PEval ¶
PEval evaluates an op in a protected environment so that calls to errorf are wrapped in an Error.
func (*Frame) ResolveVar ¶
ResolveVar resolves a variable. When the variable cannot be found, nil is returned.
type GlobPattern ¶
GlobPattern is en ephemeral Value generated when evaluating tilde and wildcards.
func (GlobPattern) Equal ¶
func (gp GlobPattern) Equal(a interface{}) bool
func (GlobPattern) Hash ¶
func (gp GlobPattern) Hash() uint32
func (GlobPattern) Index ¶
func (gp GlobPattern) Index(k interface{}) (interface{}, error)
func (GlobPattern) Kind ¶
func (GlobPattern) Kind() string
func (GlobPattern) Repr ¶
func (gp GlobPattern) Repr(int) string
type LValuesOp ¶
type LValuesOp struct { Body LValuesOpBody Begin, End int }
LValuesOp is an operation on an Frame that produce Variable's.
type LValuesOpBody ¶
LValuesOpBody is the body of an LValuesOp.
type Ns ¶
Ns is a map from names to variables.
func (Ns) AddBuiltinFn ¶
AddBuiltinFn adds a builtin function to a namespace. It returns the namespace itself.
func (Ns) AddBuiltinFns ¶
AddBuiltinFns adds builtin functions to a namespace. It returns the namespace itself.
type OptToScan ¶
type OptToScan struct { Name string Ptr interface{} Default interface{} }
OptToScan is a data structure for an option that is intended to be used in ScanOpts.
type Options ¶
type Options map[string]interface{}
func (Options) ScanToStruct ¶
func (opt Options) ScanToStruct(ptr interface{})
type PipelineError ¶
type PipelineError struct {
Errors []*Exception
}
PipelineError represents the errors of pipelines, in which multiple commands may error.
func (PipelineError) Error ¶
func (pe PipelineError) Error() string
func (PipelineError) Repr ¶
func (pe PipelineError) Repr(indent int) string
type PwdVariable ¶
type PwdVariable struct {
// contains filtered or unexported fields
}
PwdVariable is a variable whose value always reflects the current working directory. Setting it changes the current working directory.
func (PwdVariable) Get ¶
func (PwdVariable) Get() interface{}
func (PwdVariable) Set ¶
func (pwd PwdVariable) Set(v interface{}) error
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source describes a piece of source code.
func NewInteractiveSource ¶
NewInteractiveSource returns a Source for a piece of code entered interactively.
func NewInternalSource ¶
func NewModuleSource ¶
NewModuleSource returns a Source for a piece of code used as a module.
func NewScriptSource ¶
NewScriptSource returns a Source for a piece of code used as a script.
type SrcType ¶
type SrcType int
SrcType records the type of a piece of source code.
const ( // SrcInternal is a special SrcType for internal operations. SrcInternal SrcType = iota // SrcInteractive is the type of source code entered interactively. SrcInteractive // SrcScript is the type of source code used as a script. SrcScript // SrcModule is the type of source code used as a module. SrcModule )
type Test ¶
type Test struct {
// contains filtered or unexported fields
}
Test is a test case for TestEval.
func (Test) WantAnyErr ¶
WantAnyErr returns an altered Test that requires the source code to result in any error when evaluated.
func (Test) WantBytesOut ¶
WantBytesOut returns an altered test that requires the source code to produce the specified output in the byte pipe when evaluated.
func (Test) WantBytesOutString ¶
WantBytesOutString is the same as WantBytesOut except that its argument is a string.
func (Test) WantErr ¶
WantErr returns an altered Test that requires the source code to result in the specified error when evaluted.
func (Test) WantOut ¶
WantOut returns an altered Test that requires the source code to produce the specified values in the value channel when evaluated.
func (Test) WantOutBools ¶
WantOutBools returns an altered Test that requires the source code to produce the specified boolean values in the value channel when evaluated.
func (Test) WantOutStrings ¶
WantOutStrings returns an altered Test that requires the source code to produce the specified string values in the value channel when evaluated.
type ValueUnwrapper ¶
type ValueUnwrapper struct {
// contains filtered or unexported fields
}
ValueUnwrapper unwraps one Value.
func (ValueUnwrapper) Any ¶
func (u ValueUnwrapper) Any() interface{}
func (ValueUnwrapper) Callable ¶
func (u ValueUnwrapper) Callable() Callable
func (ValueUnwrapper) FdOrClose ¶
func (u ValueUnwrapper) FdOrClose() int
func (ValueUnwrapper) Int ¶
func (u ValueUnwrapper) Int() int
func (ValueUnwrapper) NonNegativeInt ¶
func (u ValueUnwrapper) NonNegativeInt() int
func (ValueUnwrapper) String ¶
func (u ValueUnwrapper) String() string
type ValuesOp ¶
type ValuesOp struct { Body ValuesOpBody Begin, End int }
ValuesOp is an operation on an Frame that produce Value's.
type ValuesOpBody ¶
ValuesOpBody is the body of ValuesOp.
type ValuesUnwrapper ¶
type ValuesUnwrapper struct {
// contains filtered or unexported fields
}
ValuesUnwrapper unwraps []Value.
func (ValuesUnwrapper) One ¶
func (u ValuesUnwrapper) One() ValueUnwrapper
One unwraps the value to be exactly one value.
Notes ¶
Bugs ¶
When evaluating closures, async access to global variables and ports can be problematic.
Source Files ¶
- args_walker.go
- boilerplate.go
- builtin_fn.go
- builtin_fn_cmd.go
- builtin_fn_cmd_unix.go
- builtin_fn_container.go
- builtin_fn_debug.go
- builtin_fn_flow.go
- builtin_fn_fs.go
- builtin_fn_io.go
- builtin_fn_misc.go
- builtin_fn_num.go
- builtin_fn_pred.go
- builtin_fn_str.go
- builtin_ns.go
- builtin_special.go
- chdir.go
- closure.go
- compilation_error.go
- compile_lvalue.go
- compile_op.go
- compile_value.go
- compiler.go
- conversion.go
- editor.go
- env_list.go
- eval.go
- evaler_ports.go
- exception.go
- external_cmd.go
- frame.go
- glob.go
- interrupts.go
- must.go
- ns.go
- port.go
- process_unix.go
- ptr_variable.go
- purely_eval.go
- pwd.go
- resolve.go
- scan.go
- source.go
- testutils.go
- unwrap.go
- util.go
- value.go
- variable_ref.go
Directories ¶
Path | Synopsis |
---|---|
Package bundled keeps bundled modules.
|
Package bundled keeps bundled modules. |
Package daemon implements the builtin daemon: module.
|
Package daemon implements the builtin daemon: module. |
Package re implements the re: module for using regular expressions.
|
Package re implements the re: module for using regular expressions. |
Package str exposes functionality from Go's strings package as an Elvish module.
|
Package str exposes functionality from Go's strings package as an Elvish module. |
Package types contains basic types for the Elvish runtime.
|
Package types contains basic types for the Elvish runtime. |
Package vartypes contains basic types for manipulating Elvish variables.
|
Package vartypes contains basic types for manipulating Elvish variables. |