Documentation ¶
Index ¶
- func Eval(ctx context.Context, source string, options ...Option) (object.Object, error)
- type Option
- func WithBuiltins(builtins map[string]object.Object) Option
- func WithCode(c *object.Code) Option
- func WithCompiler(c *compiler.Compiler) Option
- func WithDefaultBuiltins() Option
- func WithDefaultModules() Option
- func WithImporter(i importer.Importer) Option
- func WithInstructionOffset(offset int) Option
- type Tamarin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*Tamarin)
func WithCompiler ¶
func WithDefaultBuiltins ¶
func WithDefaultBuiltins() Option
func WithDefaultModules ¶
func WithDefaultModules() Option
func WithImporter ¶
func WithInstructionOffset ¶
Directories ¶
Path | Synopsis |
---|---|
Package ast defines abstract syntax tree types that represent Tamarin code.
|
Package ast defines abstract syntax tree types that represent Tamarin code. |
Package builtins defines the default set of builtin functions for Tamarin.
|
Package builtins defines the default set of builtin functions for Tamarin. |
cmd
|
|
tamarin-lsp
This package implements a Tamarin language server.
|
This package implements a Tamarin language server. |
Package compiler is used to compile an Abstract Syntax Tree (AST) into its corresponding bytecode.
|
Package compiler is used to compile an Abstract Syntax Tree (AST) into its corresponding bytecode. |
internal
|
|
tmpl
Package tmpl is used to parse Tamarin string templates.
|
Package tmpl is used to parse Tamarin string templates. |
Package lexer contains the code to lex input programs into a stream of tokens.
|
Package lexer contains the code to lex input programs into a stream of tokens. |
modules
|
|
Package object defines the standard set of object types in Tamarin.
|
Package object defines the standard set of object types in Tamarin. |
Package op defines the opcodes that are used in the Tamarin virtual machine.
|
Package op defines the opcodes that are used in the Tamarin virtual machine. |
Package parser is used to parse an input program from its tokens and produce an abstract syntax tree (AST) as output.
|
Package parser is used to parse an input program from its tokens and produce an abstract syntax tree (AST) as output. |
Package repl implements a read-eval-print-loop for Tamarin.
|
Package repl implements a read-eval-print-loop for Tamarin. |
tests
|
|
Package token defines the tokens that are produced when lexing Tamarin code.
|
Package token defines the tokens that are produced when lexing Tamarin code. |
Click to show internal directories.
Click to hide internal directories.