butterflyembed

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

README

Butterfly embed

This repository contains the runtimes for the Butterfly Programming Language. It is meant to be embedded with the compiler and used as part of the compiling process.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicatedModule = errors.New("Duplicated Module")
	ErrCantCleanRuntime = errors.New("Couldn't clear previous runtime for new code")
	ErrUnzipRuntime     = errors.New("Error unzipping runtime")
)

Functions

func CreateTemp

func CreateTemp(root string, callback func(*BFRuntime) error) error

Types

type BFRuntime

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

func CreateRuntime

func CreateRuntime(root string) (*BFRuntime, error)

func (*BFRuntime) AddTargetCode

func (bf *BFRuntime) AddTargetCode(moduleName, content string) error

func (*BFRuntime) Clear

func (bf *BFRuntime) Clear() error

func (*BFRuntime) CompileDir

func (bf *BFRuntime) CompileDir() string

func (*BFRuntime) GenerateDir

func (bf *BFRuntime) GenerateDir() string

func (*BFRuntime) GoModule

func (bf *BFRuntime) GoModule() string

Jump to

Keyboard shortcuts

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