compiler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package compiler provides compilation infrastructure

Index

Constants

This section is empty.

Variables

View Source
var (
	CallType = types.MakeBasic("special")
)

Functions

func IsEvaluable

func IsEvaluable(v ale.Value) bool

IsEvaluable returns whether the provided value is subject to further evaluation

Types

type Call added in v0.3.0

type Call func(encoder.Encoder, ...ale.Value) error

Call represents a code-generating function for the compiler

func (Call) Equal added in v0.3.0

func (Call) Equal(ale.Value) bool

Equal makes Call a typed Value

func (Call) Get added in v0.3.0

func (c Call) Get(key ale.Value) (ale.Value, bool)

func (Call) Type added in v0.3.0

func (c Call) Type() ale.Type

Type makes Call a typed value

Directories

Path Synopsis
Package asm implements the Ale assembler
Package asm implements the Ale assembler
Package encoder provides bytecode encoding
Package encoder provides bytecode encoding
Package generate provides code generation
Package generate provides code generation
ir
analysis
Package analysis provides IR analysis
Package analysis provides IR analysis
optimize
Package optimize provides IR optimization
Package optimize provides IR optimization
visitor
Package visitor provides IR visitor patterns
Package visitor provides IR visitor patterns
Package procedure provides procedure compilation
Package procedure provides procedure compilation

Jump to

Keyboard shortcuts

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