repl

package
v1.16.8 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunEnv

func RunEnv(env *lisp.LEnv, prompt, cont string, opts ...Option)

RunEnv runs a simple repl with env as a root environment.

func RunRepl

func RunRepl(prompt string, opts ...Option)

RunRepl runs a simple repl in a vanilla elps environment.

Types

type Option added in v1.16.3

type Option func(*config)

func WithStderr added in v1.16.3

func WithStderr(stderr io.WriteCloser) Option

WithStderr allows overriding the output to the REPL.

func WithStdin added in v1.16.3

func WithStdin(stdin io.ReadCloser) Option

WithStderr allows overriding the input to the REPL.

Jump to

Keyboard shortcuts

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