execute

package
v0.24.7 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: Apache-2.0 Imports: 12 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.

func RunREPL

func RunREPL()

Types

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