repl

package
v0.0.0-...-fc8933c Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(c zc.Calc)

func Test

func Test(r *REPL, test string) bool

Types

type Cmd

type Cmd func(*REPL, *scanner.Scanner) error

type REPL

type REPL struct {
	MaxUndo int
	Calc    zc.Calc
	Out     io.Writer
	// contains filtered or unexported fields
}

func New

func New(calc zc.Calc) *REPL

func (*REPL) Close

func (r *REPL) Close()

func (*REPL) Eval

func (r *REPL) Eval(text string) bool

func (*REPL) Init

func (r *REPL) Init()

func (*REPL) ReadLine

func (r *REPL) ReadLine() (string, error)

Jump to

Keyboard shortcuts

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