monkey-lang: github.com/prologic/monkey-lang/builtins Index | Files

package builtins

import "github.com/prologic/monkey-lang/builtins"

Index

Package Files

abs.go accept.go args.go assert.go bin.go bind.go bool.go builtins.go chr.go close.go connect.go divmod.go exit.go ffi.go find.go first.go hash.go hex.go id.go input.go int.go join.go last.go len.go listen.go lower.go max.go min.go oct.go open.go ord.go pop.go pow.go print.go push.go read.go readfile.go rest.go reversed.go seek.go socket.go socket_utils.go sorted.go split.go str.go typeof.go upper.go write.go writefile.go

Constants

const DefaultBufferSize = 4096

DefaultBufferSize is the default buffer size

Variables

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},
    "readfile":  &Builtin{Name: "readfile", Fn: ReadFile},
    "writefile": &Builtin{Name: "writefile", Fn: WriteFile},
    "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},
    "open":      &Builtin{Name: "open", Fn: Open},
    "close":     &Builtin{Name: "close", Fn: Close},
    "write":     &Builtin{Name: "write", Fn: Write},
    "read":      &Builtin{Name: "read", Fn: Read},
    "seek":      &Builtin{Name: "seek", Fn: Seek},
    "socket":    &Builtin{Name: "socket", Fn: Socket},
    "bind":      &Builtin{Name: "bind", Fn: Bind},
    "accept":    &Builtin{Name: "accept", Fn: Accept},
    "listen":    &Builtin{Name: "listen", Fn: Listen},
    "connect":   &Builtin{Name: "connect", Fn: Connect},
}

Builtins ...

var BuiltinsIndex []*Builtin

BuiltinsIndex ...

func Abs Uses

func Abs(args ...object.Object) object.Object

Abs ...

func Accept Uses

func Accept(args ...object.Object) object.Object

Accept ...

func Args Uses

func Args(args ...object.Object) object.Object

Args ...

func Assert Uses

func Assert(args ...object.Object) object.Object

Assert ...

func Bin Uses

func Bin(args ...object.Object) object.Object

Bin ...

func Bind Uses

func Bind(args ...object.Object) object.Object

Bind ...

func Bool Uses

func Bool(args ...object.Object) object.Object

Bool ...

func Chr Uses

func Chr(args ...object.Object) object.Object

Chr ...

func Close Uses

func Close(args ...object.Object) object.Object

Close ...

func Connect Uses

func Connect(args ...object.Object) object.Object

Connect ...

func Divmod Uses

func Divmod(args ...object.Object) object.Object

Divmod ...

func Exit Uses

func Exit(args ...object.Object) object.Object

Exit ...

func FFI Uses

func FFI(args ...object.Object) object.Object

FFI ...

func Find Uses

func Find(args ...object.Object) object.Object

Find ...

func First Uses

func First(args ...object.Object) object.Object

First ...

func HashOf Uses

func HashOf(args ...object.Object) object.Object

HashOf ...

func Hex Uses

func Hex(args ...object.Object) object.Object

Hex ...

func IdOf Uses

func IdOf(args ...object.Object) object.Object

IdOf ...

func Input Uses

func Input(args ...object.Object) object.Object

Input ...

func Int Uses

func Int(args ...object.Object) object.Object

Int ...

func Join Uses

func Join(args ...object.Object) object.Object

Join ...

func Last Uses

func Last(args ...object.Object) object.Object

Last ...

func Len Uses

func Len(args ...object.Object) object.Object

Len ...

func Listen Uses

func Listen(args ...object.Object) object.Object

Listen ...

func Lower Uses

func Lower(args ...object.Object) object.Object

Lower ...

func Max Uses

func Max(args ...object.Object) object.Object

Max ...

func Min Uses

func Min(args ...object.Object) object.Object

Min ...

func Oct Uses

func Oct(args ...object.Object) object.Object

Oct ...

func Open Uses

func Open(args ...object.Object) object.Object

Open ...

func Ord Uses

func Ord(args ...object.Object) object.Object

Ord ...

func Pop Uses

func Pop(args ...object.Object) object.Object

Pop ...

func Pow Uses

func Pow(args ...object.Object) object.Object

Pow ...

func Print Uses

func Print(args ...object.Object) object.Object

Print ...

func Push Uses

func Push(args ...object.Object) object.Object

Push ...

func Read Uses

func Read(args ...object.Object) object.Object

Read ...

func ReadFile Uses

func ReadFile(args ...object.Object) object.Object

ReadFile ...

func Rest Uses

func Rest(args ...object.Object) object.Object

Rest ...

func Reversed Uses

func Reversed(args ...object.Object) object.Object

Reversed ...

func Seek Uses

func Seek(args ...object.Object) object.Object

Seek ...

func Socket Uses

func Socket(args ...object.Object) object.Object

Socket ...

func Sorted Uses

func Sorted(args ...object.Object) object.Object

Sorted ...

func Split Uses

func Split(args ...object.Object) object.Object

Split ...

func Str Uses

func Str(args ...object.Object) object.Object

Str ...

func TypeOf Uses

func TypeOf(args ...object.Object) object.Object

TypeOf ...

func Upper Uses

func Upper(args ...object.Object) object.Object

Upper ...

func Write Uses

func Write(args ...object.Object) object.Object

Write ...

func WriteFile Uses

func WriteFile(args ...object.Object) object.Object

WriteFile ...

Package builtins imports 13 packages (graph) and is imported by 3 packages. Updated 2019-04-19. Refresh now. Tools for package owners.