repl

package
v0.0.0-...-44ce166 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCmdLineInput

func HandleCmdLineInput(src string)

Runs a program and prints the result to STDOUT

func HandleCommandLine

func HandleCommandLine(args []string)

func HandleFileInput

func HandleFileInput(lines []string, store *eval.ReactionStore)

Runs a program loaded from a file and prints the result to STDOUT

func HandleReplInput

func HandleReplInput(src string, store *eval.ReactionStore)

Runs a program from the REPL and prints the result to STDOUT

func ParseProgram

func ParseProgram(src string) (*ast.Program, error)

Parses a program

func ParseProgramOrReaction

func ParseProgramOrReaction(src string, store *eval.ReactionStore) (*ast.Program, *ast.ReactionPointer, error)

Parses a program or reaction definition

func PrintHelp

func PrintHelp()

func PrintLexerOutput

func PrintLexerOutput(src string)

Runs a program through the lexer and prints the resultant tokens

func PrintParserOutput

func PrintParserOutput(src string)

Runs a program through the parser and prints the resultant AST

func StartRepl

func StartRepl()

Runs the REPL (read eval print loop)

Types

This section is empty.

Jump to

Keyboard shortcuts

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