builtins

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Builtins = map[string]*Builtin{
	"len":      &Builtin{Name: "len", Fn: Len},
	"input":    &Builtin{Name: "input", Fn: Input},
	"print":    &Builtin{Name: "print", Fn: Print},
	"first":    &Builtin{Name: "first", Fn: First},
	"last":     &Builtin{Name: "last", Fn: Last},
	"rest":     &Builtin{Name: "rest", Fn: Rest},
	"push":     &Builtin{Name: "push", Fn: Push},
	"pop":      &Builtin{Name: "pop", Fn: Pop},
	"exit":     &Builtin{Name: "exit", Fn: Exit},
	"assert":   &Builtin{Name: "assert", Fn: Assert},
	"bool":     &Builtin{Name: "bool", Fn: Bool},
	"int":      &Builtin{Name: "int", Fn: Int},
	"str":      &Builtin{Name: "str", Fn: Str},
	"type":     &Builtin{Name: "type", Fn: TypeOf},
	"args":     &Builtin{Name: "args", Fn: Args},
	"lower":    &Builtin{Name: "lower", Fn: Lower},
	"upper":    &Builtin{Name: "upper", Fn: Upper},
	"join":     &Builtin{Name: "join", Fn: Join},
	"split":    &Builtin{Name: "split", Fn: Split},
	"find":     &Builtin{Name: "find", Fn: Find},
	"read":     &Builtin{Name: "read", Fn: Read},
	"write":    &Builtin{Name: "write", Fn: Write},
	"ffi":      &Builtin{Name: "ffi", Fn: FFI},
	"abs":      &Builtin{Name: "abs", Fn: Abs},
	"bin":      &Builtin{Name: "bin", Fn: Bin},
	"hex":      &Builtin{Name: "hex", Fn: Hex},
	"ord":      &Builtin{Name: "ord", Fn: Ord},
	"chr":      &Builtin{Name: "chr", Fn: Chr},
	"divmod":   &Builtin{Name: "divmod", Fn: Divmod},
	"hash":     &Builtin{Name: "hash", Fn: HashOf},
	"id":       &Builtin{Name: "id", Fn: IdOf},
	"oct":      &Builtin{Name: "oct", Fn: Oct},
	"pow":      &Builtin{Name: "pow", Fn: Pow},
	"min":      &Builtin{Name: "min", Fn: Min},
	"max":      &Builtin{Name: "max", Fn: Max},
	"sorted":   &Builtin{Name: "sorted", Fn: Sorted},
	"reversed": &Builtin{Name: "reversed", Fn: Reversed},
}

Builtins ...

View Source
var BuiltinsIndex []*Builtin

BuiltinsIndex ...

Functions

func Abs added in v1.1.3

func Abs(args ...Object) Object

Abs ...

func Args

func Args(args ...Object) Object

Args ...

func Assert

func Assert(args ...Object) Object

Assert ...

func Bin added in v1.1.3

func Bin(args ...Object) Object

Bin ...

func Bool

func Bool(args ...Object) Object

Bool ...

func Chr added in v1.1.3

func Chr(args ...Object) Object

Chr ...

func Divmod added in v1.1.3

func Divmod(args ...Object) Object

Divmod ...

func Exit

func Exit(args ...Object) Object

Exit ...

func FFI

func FFI(args ...Object) Object

FFI ...

func Find

func Find(args ...Object) Object

Find ...

func First

func First(args ...Object) Object

First ...

func HashOf added in v1.1.3

func HashOf(args ...Object) Object

HashOf ...

func Hex added in v1.1.3

func Hex(args ...Object) Object

Hex ...

func IdOf added in v1.1.3

func IdOf(args ...Object) Object

IdOf ...

func Input

func Input(args ...Object) Object

Input ...

func Int

func Int(args ...Object) Object

Int ...

func Join

func Join(args ...Object) Object

Join ...

func Last

func Last(args ...Object) Object

Last ...

func Len

func Len(args ...Object) Object

Len ...

func Lower

func Lower(args ...Object) Object

Lower ...

func Max added in v1.2.0

func Max(args ...Object) Object

Max ...

func Min added in v1.2.0

func Min(args ...Object) Object

Min ...

func Oct added in v1.1.3

func Oct(args ...Object) Object

Oct ...

func Ord added in v1.1.3

func Ord(args ...Object) Object

Ord ...

func Pop

func Pop(args ...Object) Object

Pop ...

func Pow added in v1.1.3

func Pow(args ...Object) Object

Pow ...

func Print

func Print(args ...Object) Object

Print ...

func Push

func Push(args ...Object) Object

Push ...

func Read

func Read(args ...Object) Object

Read ...

func Rest

func Rest(args ...Object) Object

Rest ...

func Reversed added in v1.2.0

func Reversed(args ...Object) Object

Reversed ...

func Sorted added in v1.2.0

func Sorted(args ...Object) Object

Sorted ...

func Split

func Split(args ...Object) Object

Split ...

func Str

func Str(args ...Object) Object

Str ...

func TypeOf

func TypeOf(args ...Object) Object

TypeOf ...

func Upper

func Upper(args ...Object) Object

Upper ...

func Write

func Write(args ...Object) Object

Write ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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