repl

package
v0.0.0-...-315ddab Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REPLBannerGreeting string = `` /* 446-byte string literal not displayed */

	CommonREPLHelp string = `
        Docs: https://zylisp.github.io/zylisp/
     Project: https://github.com/zylisp/zylisp`

	ASTREPLHelp string = `
Instructions: Simply type any form to view the generated Go AST.
        Exit: ^D or ^C
`

	GoGenREPLHelp string = ASTREPLHelp

	LispREPLHelp string = `
      Exit: ^D, ^C, (exit), or (quit)
`

	REPLCommonExitMsg string = `
See you space cowboy ...
`

	REPLCtlDExitMsg string = `^D
`

	REPLCtlCExitMsg string = `^C
`
	ASTPrompt string = "AST> "

	GoGenPrompt string = "GOGEN> "

	LispPrompt string = "Zy𝛌ISP> "

	LispDefaultPackage string = "user"
)

Constants for the repl package

View Source
const (
	// Mode Errors
	ModeNeededError string = "You need to supply a mode"

	// Files and Directories Errors
	FilesNeededError          string = "You need to provide at least one file upon which to operate"
	DirNeededError            string = "You must define an output directory when processing multiple files"
	UnexpectedFileOrDirError  string = "Unexpected error with CLI and output file or directory"
	UnexpectedFilesOrDirError string = "Unexpected error with CLI and output files or directory"

	// Compile Errors
	CompileError            string = "Couldn't compile file: %s"
	CompileWithoutFileError string = "Cannot compile file(s) without file(s) defined"
	CompoileWithoutCLIError string = "Can only compile to bytecode in CLI mode"

	// Unsupported Errors
	LispCLIUnsupportedError  string = "The Lisp CLI is currently not supported"
	LispREPLUnsupportedError string = "Lisp mode is currently not supported"
)

Errors for the repl package

Variables

This section is empty.

Functions

func ASTMain

func ASTMain()

ASTMain runs the main loop for the AST-based REPL

func GoGenMain

func GoGenMain()

GoGenMain runs the main loop for the Go-code-based REPL

func LispMain

func LispMain()

LispMain runs the main loop for the Lisp-based REPL

Types

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

Banner contains the data used for different banner types.

Jump to

Keyboard shortcuts

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