builtins

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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},
	"typeof": &Builtin{Name: "typeof", 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},
}

Builtins ...

View Source
var BuiltinsIndex []*Builtin

BuiltinsIndex ...

Functions

func Args

func Args(args ...Object) Object

Args ...

func Assert

func Assert(args ...Object) Object

Assert ...

func Bool

func Bool(args ...Object) Object

Bool ...

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 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 Pop

func Pop(args ...Object) Object

Pop ...

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 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