interpreter

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package interpreter implements the public API that can be used to interact with the harlock runtime from other applications or the CLI tool.

Index

Constants

This section is empty.

Variables

View Source
var Version = ""

Version represents the current harlock version

Functions

func Embed

func Embed(filename string) error

Embed generates an executable from a script, by embedding the script and the harlock runtime within a binary, returning an error if the process fails.

func Exec

func Exec(r io.Reader, stderr io.Writer, args ...string) []string

Exec reads a script from the passed reader, executes it and sends the generated output to the passed writer. If the parsing phase fails, it returns an array of string containing the parsing errors, or nil otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

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