compiler

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccessCode

func NewAccessCode() string

NewAccessCode generates a random access code and returns it as a string

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

Compiler is a holder struct for a compiler type

func NewCompiler

func NewCompiler(log *logrus.Logger) *Compiler

NewCompiler returns a new compiler

func (*Compiler) Compile

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

Compile takes a file and calls the appropriate compiler depending on the filename extension

func (*Compiler) CompileGame

func (c *Compiler) CompileGame(filename string) (*rp.Game, error)

CompileGame reads a game file and returns a compiled game

func (*Compiler) CompileOOB

func (c *Compiler) CompileOOB(filename string) (*rp.Command, error)

CompileOOB reads an oob file and returns a compiled OOB

func (*Compiler) CompileScenario

func (c *Compiler) CompileScenario(filename string) (*rp.Scenario, error)

CompileScenario reads a scenario file and returns a compiled scenario

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error is an error type returned by the compiler suite

func (Error) Error

func (e Error) Error() string

Error returns a string

Jump to

Keyboard shortcuts

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