Documentation
¶
Overview ¶
GoSpeccy's scripting language based on "github.com/sbinet/go-eval"
Index ¶
Constants ¶
View Source
const ( SCRIPT_DIRECTORY = "scripts" STARTUP_SCRIPT = "startup" )
View Source
const ( NONE ast_state_t = iota DEFINE_VAR_LHS // The left-hand-side of an assignment which defines a new variable )
View Source
const ( SINGLE_LINE print_style_t = iota MULTI_LINE )
Variables ¶
View Source
var (
IgnoreStartupScript = false
)
These variables are set only once, before starting new goroutines, so there is no need for controlling concurrent access via a sync.Mutex
Functions ¶
func DefineFunction ¶
func DefineFunction(f Function)
func Init ¶
func Init(_app *spectrum.Application, _cmdLineArg string, _speccy *spectrum.Spectrum48k)
Types ¶
type Interpreter ¶
type Interpreter struct {
// contains filtered or unexported fields
}
func GetInterpreter ¶
func GetInterpreter() *Interpreter
func (*Interpreter) Run ¶
func (i *Interpreter) Run(sourceCode string) error
Click to show internal directories.
Click to hide internal directories.