ext

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package ext contains functions that are used to handle Elk native extensions

Index

Constants

This section is empty.

Variables

Functions

func Register

func Register(name string, runtimeInit RuntimeInitialiser, typeInit TypecheckerInitialiser)

Register registers a new native extension

Types

type Extension

type Extension struct {
	Name            string
	RuntimeInit     RuntimeInitialiser
	TypecheckerInit TypecheckerInitialiser
	Initialised     bool
}

func New

func New(name string, runtimeInit RuntimeInitialiser, typeInit TypecheckerInitialiser) *Extension

func (*Extension) Init

func (e *Extension) Init(checker types.Checker)

type RuntimeInitialiser

type RuntimeInitialiser func()

type TypecheckerInitialiser

type TypecheckerInitialiser func(types.Checker)

Directories

Path Synopsis
std

Jump to

Keyboard shortcuts

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