interpreter

package
v6.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 9 Imported by: 0

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