compiler

package
v0.0.0-...-402e600 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {

	// Compiler optional flags
	OutputTokens bool
	OutputAst    bool
	NoCompile    bool
	// contains filtered or unexported fields
}

Compiler hold infomation about the file to be compiled

func New

func New(filePath string) (*Compiler, error)

New creates a new compiler for the file at filePath

func (*Compiler) Compile

func (c *Compiler) Compile(buildDirectory string) error

Compile compiles the file and writes to the outPath

Jump to

Keyboard shortcuts

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