compiler

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 11 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 New

func New(file *ast.Module, fset *token.FileSet, trace bool, stdin io.Reader, stdout io.Writer, stderr io.Writer) (i *Compiler, err error)

func (*Compiler) Compile

func (c *Compiler) Compile() string

func (*Compiler) CurrentModule

func (c *Compiler) CurrentModule() *Module

func (*Compiler) Fset

func (c *Compiler) Fset() *token.FileSet

func (*Compiler) Global

func (c *Compiler) Global() *Scope

func (*Compiler) GooseRoot

func (c *Compiler) GooseRoot() string

func (*Compiler) ImportStack

func (c *Compiler) ImportStack() []*Module

func (*Compiler) Modules

func (c *Compiler) Modules() map[string]*Module

func (*Compiler) Stderr

func (c *Compiler) Stderr() io.Writer

func (*Compiler) Stdin

func (c *Compiler) Stdin() io.Reader

func (*Compiler) Stdout

func (c *Compiler) Stdout() io.Writer

func (*Compiler) Throw

func (c *Compiler) Throw(msg string, parts ...any)

Jump to

Keyboard shortcuts

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