Documentation ¶
Index ¶
- func ExitWithError(message string)
- func PrepareChecker(program *ast.Program, filename string, codes map[string]string, ...) (*sema.Checker, func(error))
- func PrepareInterpreter(filename string) (*interpreter.Interpreter, *sema.Checker, func(error))
- func PrepareProgram(code string, filename string, codes map[string]string) (*ast.Program, func(error))
- func PrepareProgramFromFile(filename string, codes map[string]string) (*ast.Program, func(error))
- func PrettyPrintError(writer io.Writer, err error, filename string, codes map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitWithError ¶
func ExitWithError(message string)
func PrepareChecker ¶
func PrepareChecker(program *ast.Program, filename string, codes map[string]string, must func(error)) (*sema.Checker, func(error))
PrepareChecker prepares and initializes a checker with a given code as a string, and a filename which is used for pretty-printing errors, if any
func PrepareInterpreter ¶
func PrepareInterpreter(filename string) (*interpreter.Interpreter, *sema.Checker, func(error))
func PrepareProgram ¶ added in v0.7.0
func PrepareProgramFromFile ¶ added in v0.7.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.