compilers

package
v0.0.0-...-1388524 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package compilers provides utilities for compiling programs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteProgramToDisc

func WriteProgramToDisc(req *runpb.Program, outputPath string) ([]string, error)

WriteProgramToDisc writes the source files in the given program to disc

Types

type Compilation

type Compilation struct {
	// The compiled program. This is unset if the compilation failed.
	Program *runpb.CompiledProgram

	// The output printed by the compiler to stdout.
	Output string

	// The output printed by the compiler to stderr.
	Errors string
}

A Compilation represents the output of a program compilation.

func Copy

func Copy(req *runpb.Program, outputPath string, _ execpb.ExecuteServiceClient) (*Compilation, error)

Copy produces a compiled progam that is simply the input program but with all files copied into the output path.

Jump to

Keyboard shortcuts

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