repl

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const PROMPT = "#=> "

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Interactive bool
}

type REPL

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

func New

func New(user string, args []string, opts *Options) *REPL

func (*REPL) Eval

func (r *REPL) Eval(f io.Reader, out io.Writer) (env *object.Environment)

func (*REPL) Run

func (r *REPL) Run()

func (*REPL) StartEvalLoop

func (r *REPL) StartEvalLoop(in io.Reader, out io.Writer, env *object.Environment)

Jump to

Keyboard shortcuts

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