astcomp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompileLuaChunk

func CompileLuaChunk(source string, s ast.BlockStat) (kidx uint, consts []ir.Constant, err error)

CompileLuaChunk compiles the given block statement to IR code and returns a slice or ir.Contant values and the index to the main code constant.

Types

type Error

type Error struct {
	Where   ast.Locator
	Message string
}

Error that results from a valid AST which does not form a valid program.

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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