Constants for the repl package
const ( REPLBannerGreeting string = `Okay, 3, 2, 1 - Let's jam! Welcome to /^^^^^^^^/^^ /^^ /^^ /^^ /^^ /^^^^^^^^ /^^^^^^^^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^^^^^^^ /^^^^^^^^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^ /^^^^^^^^^^^ /^^ /^^^^^^^^ /^^ /^^^^^^^^ /^^ ` 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" )
Errors for the repl package
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" )
func ASTMain()
ASTMain runs the main loop for the AST-based REPL
func GoGenMain()
GoGenMain runs the main loop for the Go-code-based REPL
func LispMain()
LispMain runs the main loop for the Lisp-based REPL
Banner contains the data used for different banner types.
type Banner struct {
// contains filtered or unexported fields
}