repl

package
v0.0.0-...-2577f20 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ABS_HISTORY_FILE      = "~/.abs_history"
	ABS_MAX_HISTORY_LINES = "1000"
)
View Source
const ABS_INIT_FILE = "~/.absrc"

support for ABS init file

View Source
const ABS_PROMPT_PREFIX = "⧐  "

support for user config of ABS REPL prompt string

Variables

View Source
var LivePrefixState struct {
	LivePrefix string
	IsEnable   bool
}

Functions

func BeginRepl

func BeginRepl(args []string, version string)

BeginRepl (args) -- the REPL, both interactive and script modes begin here This allows us to prime the global env with ABS_INTERACTIVE = true/false, load the builtin Fns names for the use of command completion, and load the ABS_INIT_FILE into the global env

func Run

func Run(code string, interactive bool)

Core of the REPL.

This function takes code and evaluates it, spitting out the result.

func Start

func Start(in io.Reader, out io.Writer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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