compiler

package
v0.0.0-...-1a2a7be Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2017 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(code string) (string, error)

Types

type Compiler

type Compiler struct{}

func NewCompiler

func NewCompiler() *Compiler

func (*Compiler) Compile

func (cmp *Compiler) Compile(code string) (string, error)

func (*Compiler) LowCompile

func (cmp *Compiler) LowCompile(ctx *Context)

type Context

type Context struct {
	GoCode string
	JsCode string
	Err    error
	// contains filtered or unexported fields
}

func NewContext

func NewContext(code string) *Context

func (*Context) Done

func (ctx *Context) Done()

func (*Context) SetError

func (ctx *Context) SetError(err error)

func (*Context) Wait

func (ctx *Context) Wait()

Jump to

Keyboard shortcuts

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