builtins

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Overview

The standard library for Orion. It contains all of the built-in functions, variables, types, etc. of Orion.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeFunctions

func MakeFunctions()

Initialize the functions map for use. NOTE: This must be called before any usage of the Functions variable.

func MakeVariables added in v0.4.0

func MakeVariables(verbose uint8)

Initialize the variables map for use. NOTE: This must be called before any usage of the Variables variable.

func ParsedArgs added in v0.4.0

func ParsedArgs(data []*ast.Expr) ([]*ast.Expr, error)

ParsedArgs converts all the arguments of a function into usable values. For example: evaluating function values before use.

Types

type FunctionsType

type FunctionsType = map[string]OrionFunction

A FunctionsType is a map of all functions (OrionFunction) in Orion.

var Functions FunctionsType

Functions map containing all functions in Orion.

type OrionFunction

type OrionFunction = func([]*ast.Expr) (ast.Expr, error)

An OrionFunction represents a function in Orion.

type OrionVar added in v0.4.0

type OrionVar = ast.Expr

An OrionVar represents a variable in Orion.

type VariablesType added in v0.4.0

type VariablesType = map[string]OrionVar

A VariablesType is a map of all variables (OrionVar) in Orion.

var Variables VariablesType

Variables map containing all variables in Orion.

Jump to

Keyboard shortcuts

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