interpreter

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 10 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interpreter

type Interpreter struct {
	Stack     // Data stack is integral
	C         Stack
	Compiling int
	Tracing   int
	DictStack []Dictionary
	Input     *bufio.Reader
	Line      string
	NameManager
}

func NewInterpreter

func NewInterpreter() Interpreter

func (*Interpreter) DictionaryPop

func (i *Interpreter) DictionaryPop()

func (*Interpreter) DictionaryPush

func (i *Interpreter) DictionaryPush(d Dictionary)

Push a dictionary on the stack

func (*Interpreter) Exec3

func (i *Interpreter) Exec3(x interface{})

func (*Interpreter) Interpret

func (i *Interpreter) Interpret(source io.Reader)

func (*Interpreter) InterpretLine

func (i *Interpreter) InterpretLine(line string)

func (*Interpreter) InterpretString

func (i *Interpreter) InterpretString(s string)

execute one thing

func (*Interpreter) Lookup

func (i *Interpreter) Lookup(s string) Name

Convert a string to a name

func (*Interpreter) PStack

func (p *Interpreter) PStack()

func (*Interpreter) Print

func (p *Interpreter) Print(x interface{})

func (*Interpreter) String

func (p *Interpreter) String(x interface{}) (s string)

Jump to

Keyboard shortcuts

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