Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildOptions ¶ added in v0.31.0
type BuildOptions struct {
Globals Declarations // globals.
DisallowGoStmt bool // disallow "go" statement.
Packages scriggo.PackageLoader // package loader used to load imported packages.
}
type Script ¶
type Script struct {
// contains filtered or unexported fields
}
func Build ¶ added in v0.31.0
func Build(src io.Reader, options *BuildOptions) (*Script, error)
Build builds a script with the given options, loading the imported packages from packages.
If a compilation error occurs, it returns a CompilerError error.
func (*Script) Disassemble ¶
Disassemble disassembles the script and returns its assembly code.
Click to show internal directories.
Click to hide internal directories.