compiler

package
v0.0.0-...-97278e4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: MIT Imports: 7 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 {
	*types.Info

	*token.FileSet
	// contains filtered or unexported fields
}

func NewCompiler

func NewCompiler(typeInfo *types.Info, fileSet *token.FileSet) *Compiler

func (*Compiler) CompileFiles

func (c *Compiler) CompileFiles(files []*ast.File) *py.Module

type FuncDecl

type FuncDecl struct {
	Class py.Identifier // "" if free function
	Def   *py.FunctionDef
}

type Module

type Module struct {
	Imports   []py.Stmt
	Values    []py.Stmt
	Classes   []*py.ClassDef
	Types     []py.Stmt
	Functions []*py.FunctionDef
	Methods   map[py.Identifier][]*py.FunctionDef
}

Jump to

Keyboard shortcuts

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