repl

package
v0.0.0-...-804c98d Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CONT = "> "

CONT - When a construct is incomplete

View Source
const PROMPT = "mkrepl >> "

PROMPT - the prompt that the user sees

Variables

View Source
var Commands = map[string]func(){
	"quit": quit,
	"exit": quit,
	"help": help,
}

Commands - the commands that the user can enter in the repl

Functions

This section is empty.

Types

type Repl

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

Repl - the interative Monkey shell

func New

func New() *Repl

New - returns an instance of a Repl

func (*Repl) Run

func (r *Repl) Run(username string, in io.Reader, out io.Writer)

Run - Runs the Repl

Jump to

Keyboard shortcuts

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