Documentation ¶
Index ¶
- func HandleCmdLineInput(src string)
- func HandleCommandLine(args []string)
- func HandleFileInput(lines []string, store *eval.ReactionStore)
- func HandleReplInput(src string, store *eval.ReactionStore)
- func ParseProgram(src string) (*ast.Program, error)
- func ParseProgramOrReaction(src string, store *eval.ReactionStore) (*ast.Program, *ast.ReactionPointer, error)
- func PrintHelp()
- func PrintLexerOutput(src string)
- func PrintParserOutput(src string)
- func StartRepl()
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 ParseProgramOrReaction ¶
func ParseProgramOrReaction(src string, store *eval.ReactionStore) (*ast.Program, *ast.ReactionPointer, error)
Parses a program or reaction definition
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.