execute

package
v0.42.9 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

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 added in v0.39.0

type ConsoleREPL struct {
	// contains filtered or unexported fields
}

func NewConsoleREPL added in v0.39.0

func NewConsoleREPL() (*ConsoleREPL, error)

func (*ConsoleREPL) Run added in v0.39.0

func (consoleREPL *ConsoleREPL) Run()

type InteractiveDebugger added in v0.24.0

type InteractiveDebugger struct {
	// contains filtered or unexported fields
}

func NewInteractiveDebugger added in v0.24.0

func NewInteractiveDebugger(debugger *interpreter.Debugger, stop interpreter.Stop) *InteractiveDebugger

func (*InteractiveDebugger) Continue added in v0.24.0

func (d *InteractiveDebugger) Continue()

func (*InteractiveDebugger) Help added in v0.24.0

func (d *InteractiveDebugger) Help()

func (*InteractiveDebugger) Next added in v0.24.0

func (d *InteractiveDebugger) Next()

func (*InteractiveDebugger) Run added in v0.24.0

func (d *InteractiveDebugger) Run()

func (*InteractiveDebugger) Show added in v0.24.0

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 added in v0.24.0

func (d *InteractiveDebugger) Where()

Jump to

Keyboard shortcuts

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