Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(args []string, debugger *interpreter.Debugger)
Execute parses the given filename and prints any syntax errors. If there are no syntax errors, the program is interpreted. If after the interpretation a global function `main` is defined, it will be called. The program may call the function `log` to print a value.
Types ¶
type ConsoleREPL ¶
type ConsoleREPL struct {
// contains filtered or unexported fields
}
func NewConsoleREPL ¶
func NewConsoleREPL() (*ConsoleREPL, error)
func (*ConsoleREPL) Run ¶
func (consoleREPL *ConsoleREPL) Run()
type InteractiveDebugger ¶
type InteractiveDebugger struct {
// contains filtered or unexported fields
}
func NewInteractiveDebugger ¶
func NewInteractiveDebugger(debugger *interpreter.Debugger, stop interpreter.Stop) *InteractiveDebugger
func (*InteractiveDebugger) Continue ¶
func (d *InteractiveDebugger) Continue()
func (*InteractiveDebugger) Help ¶
func (d *InteractiveDebugger) Help()
func (*InteractiveDebugger) Next ¶
func (d *InteractiveDebugger) Next()
func (*InteractiveDebugger) Run ¶
func (d *InteractiveDebugger) Run()
func (*InteractiveDebugger) Show ¶
func (d *InteractiveDebugger) Show(names []string)
Show shows the values for the variables with the given names. If no names are given, lists all non-base variables
func (*InteractiveDebugger) Where ¶
func (d *InteractiveDebugger) Where()
Click to show internal directories.
Click to hide internal directories.