qcompile

package
v0.0.0-...-5e90b7b Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 15 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 {
	// contains filtered or unexported fields
}

func NewCompiler

func NewCompiler() *Compiler

func (*Compiler) CompileFunc

func (c *Compiler) CompileFunc(ctx *Context, fn *ast.FuncDecl) (compiled *qruntime.Func, err error)

type Context

type Context struct {
	Env *qruntime.Env

	Optimize bool
	Static   bool

	Package *types.Package
	Types   *types.Info
	Sizes   types.Sizes
	Fset    *token.FileSet

	TestingContext TestingContext
}

type TestingContext

type TestingContext interface {
	FuncIR(fn *ir.Func)
}

Jump to

Keyboard shortcuts

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