scripting

package
v0.0.0-...-c7d0891 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2015 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InterpreterNotImplemented = errors.New("interpreter not implemented")

InterpreterNotImplemented is returned when SDETool tries using an interpreter that doen't exist

Functions

This section is empty.

Types

type ScriptingLang

type ScriptingLang interface {
	RunScript(filename string) error
	RunString(s string) error
	Interpreter() error
	Init() error
	IsInit() bool
}

ScriptingLang is an interface to allow expandability for other scripting languages.

RunScript is called when the user choses to run a specific script

RunString is called when the user inputs a string to be run

Interpreter is called when the user choses to open a interpreter.

You can return InterpreterNotImplemented
And we'll know it's not implemented and notify the user.

Init is called whenever your language is first fired up. But only when IsInit returns false

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL