front

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Compilators = map[string]CompilatorT{}

Functions

func BindIdent

func BindIdent(bindings BindingsT, ident *ast.Ident, typeInfo *types.Info) *VariableT

func MakeTopLevelForm

func MakeTopLevelForm(decl *ast.FuncDecl, parsedFiles *ParsedFilesT, globals BindingsT) *CallNodeT

func SimplifyTopLevel

func SimplifyTopLevel(lambda *CallNodeT)

Types

type BindingsT

type BindingsT map[types.Object]*VariableT

type CompilatorT added in v0.1.1

type CompilatorT interface {
	ToCps(args []NodeT, resultVars []*VariableT, source token.Pos, calls *CallsT)
}

type LhsT

type LhsT interface {
	// contains filtered or unexported methods
}

type ParsedFilesT added in v0.1.1

type ParsedFilesT struct {
	Directory   string
	PackagePath string
	AstFiles    []*ast.File
	Packages    []*packages.Package
	TypesInfo   *types.Info
	FileSet     *token.FileSet
}

func NewParsedFiles added in v0.1.1

func NewParsedFiles(directory string, packagePath string) *ParsedFilesT

func (*ParsedFilesT) ParseFile added in v0.1.1

func (files *ParsedFilesT) ParseFile(fileName string, fileContents []byte)

func (*ParsedFilesT) TypeCheck added in v0.1.1

func (files *ParsedFilesT) TypeCheck()

type PointerLhsT

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

An LHS where the location is a single variable, which so far is all of them.

Jump to

Keyboard shortcuts

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