interpreter

package
v0.0.0-...-a2101d5 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootedTable

func BootedTable(boot string) *table.Table

BootedTable returns a table with built in functions defined.

func Eval

func Eval(code string, stk *stack.Stack, tbl *table.Table) (*stack.Stack, *table.Table, types.VType)

Eval runs the string of vodka code given using the Stack and Table passed. It returns the modified Stack and Table, along with the last returned value.

func Run

func Run(tokens *p.Tokens, stk *stack.Stack, tbl *table.Table) (*stack.Stack, *table.Table, types.VType)

Run takes a series of tokens and runs them using the Stack and Table given. It returns the modified Stack and Table along with the last returned value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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