Back to godoc.org

Package compiler

v0.0.0-...-6e409f7
Latest Go to latest

The highest tagged major version is .

Published: Oct 13, 2014 | License: MIT | Module: bitbucket.org/yyuu/xtc

Index

type Compiler

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

func NewCompiler

func NewCompiler(name string, args []string) *Compiler

func (*Compiler) Compile

func (self *Compiler) Compile() (string, error)

func (*Compiler) CompileString

func (self *Compiler) CompileString(s string) (string, error)

func (*Compiler) SourceFiles

func (self *Compiler) SourceFiles() []*xtc_core.SourceFile

type DereferenceChecker

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

func NewDereferenceChecker

func NewDereferenceChecker(errorHandler *xtc_core.ErrorHandler, options *xtc_core.Options, table *xtc_typesys.TypeTable) *DereferenceChecker

func (*DereferenceChecker) Check

func (self *DereferenceChecker) Check(ast *xtc_ast.AST) (*xtc_ast.AST, error)

func (*DereferenceChecker) VisitExprNode

func (self *DereferenceChecker) VisitExprNode(unknown xtc_core.IExprNode) interface{}

func (*DereferenceChecker) VisitStmtNode

func (self *DereferenceChecker) VisitStmtNode(unknown xtc_core.IStmtNode) interface{}

func (*DereferenceChecker) VisitTypeDefinition

func (self *DereferenceChecker) VisitTypeDefinition(unknown xtc_core.ITypeDefinition) interface{}

type IRGenerator

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

func NewIRGenerator

func NewIRGenerator(errorHandler *xtc_core.ErrorHandler, options *xtc_core.Options, table *xtc_typesys.TypeTable) *IRGenerator

func (*IRGenerator) Generate

func (self *IRGenerator) Generate(ast *xtc_ast.AST) (*xtc_ir.IR, error)

func (*IRGenerator) VisitExprNode

func (self *IRGenerator) VisitExprNode(unknown xtc_core.IExprNode) interface{}

func (*IRGenerator) VisitStmtNode

func (self *IRGenerator) VisitStmtNode(unknown xtc_core.IStmtNode) interface{}

func (*IRGenerator) VisitTypeDefinition

func (self *IRGenerator) VisitTypeDefinition(unknown xtc_core.ITypeDefinition) interface{}

type LocalResolver

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

func NewLocalResolver

func NewLocalResolver(errorHandler *xtc_core.ErrorHandler, options *xtc_core.Options) *LocalResolver

func (*LocalResolver) Resolve

func (self *LocalResolver) Resolve(ast *xtc_ast.AST) (*xtc_ast.AST, error)

func (*LocalResolver) VisitExprNode

func (self *LocalResolver) VisitExprNode(unknown xtc_core.IExprNode) interface{}

func (*LocalResolver) VisitStmtNode

func (self *LocalResolver) VisitStmtNode(unknown xtc_core.IStmtNode) interface{}

func (*LocalResolver) VisitTypeDefinition

func (self *LocalResolver) VisitTypeDefinition(unknown xtc_core.ITypeDefinition) interface{}

type TypeChecker

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

func NewTypeChecker

func NewTypeChecker(errorHandler *xtc_core.ErrorHandler, options *xtc_core.Options, table *xtc_typesys.TypeTable) *TypeChecker

func (*TypeChecker) Check

func (self *TypeChecker) Check(ast *xtc_ast.AST) (*xtc_ast.AST, error)

func (*TypeChecker) VisitExprNode

func (self *TypeChecker) VisitExprNode(unknown xtc_core.IExprNode) interface{}

func (*TypeChecker) VisitStmtNode

func (self *TypeChecker) VisitStmtNode(unknown xtc_core.IStmtNode) interface{}

func (*TypeChecker) VisitTypeDefinition

func (self *TypeChecker) VisitTypeDefinition(unknown xtc_core.ITypeDefinition) interface{}

type TypeResolver

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

func NewTypeResolver

func NewTypeResolver(errorHandler *xtc_core.ErrorHandler, options *xtc_core.Options, table *xtc_typesys.TypeTable) *TypeResolver

func (*TypeResolver) Resolve

func (self *TypeResolver) Resolve(ast *xtc_ast.AST) (*xtc_ast.AST, error)

func (*TypeResolver) VisitEntity

func (self *TypeResolver) VisitEntity(unknown xtc_core.IEntity) interface{}

func (*TypeResolver) VisitExprNode

func (self *TypeResolver) VisitExprNode(unknown xtc_core.IExprNode) interface{}

func (*TypeResolver) VisitStmtNode

func (self *TypeResolver) VisitStmtNode(unknown xtc_core.IStmtNode) interface{}

func (*TypeResolver) VisitTypeDefinition

func (self *TypeResolver) VisitTypeDefinition(unknown xtc_core.ITypeDefinition) interface{}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier