Documentation
¶
Index ¶
- Constants
- 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
Constants ¶
View Source
const Version = "0.3.0"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*cfg.RisorConfig)
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 Risor code.
|
Package ast defines abstract syntax tree types that represent Risor code. |
|
Package builtins defines the default set of builtin functions for Risor.
|
Package builtins defines the default set of builtin functions for Risor. |
|
cmd
|
|
|
risor
command
|
|
|
risor-api
command
|
|
|
risor-lambda
command
|
|
|
risor-lsp
command
This package implements a Risor language server.
|
This package implements a Risor language server. |
|
risor-docs
module
|
|
|
risor-modgen
module
|
|
|
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. |
|
examples
|
|
|
go/struct
module
|
|
|
internal
|
|
|
tmpl
Package tmpl is used to parse Risor string templates.
|
Package tmpl is used to parse Risor 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
|
|
|
bcrypt
module
|
|
|
carbon
module
|
|
|
cli
module
|
|
|
color
module
|
|
|
echarts
module
|
|
|
gha
module
|
|
|
github
module
|
|
|
goquery
module
|
|
|
htmltomarkdown
module
|
|
|
isatty
module
|
|
|
jmespath
module
|
|
|
kubernetes
module
|
|
|
playwright
module
|
|
|
qrcode
module
|
|
|
redis
module
|
|
|
sched
module
|
|
|
semver
module
|
|
|
shlex
module
|
|
|
slack
module
|
|
|
sql
module
|
|
|
ssh
module
|
|
|
tablewriter
module
|
|
|
template
module
|
|
|
vault
module
|
|
|
yaml
module
|
|
|
Package object defines the standard set of object types in Risor.
|
Package object defines the standard set of object types in Risor. |
|
Package op defines the opcodes that are used in the Risor virtual machine.
|
Package op defines the opcodes that are used in the Risor 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 Risor.
|
Package repl implements a read-eval-print-loop for Risor. |
|
tests
|
|
|
benchmark
command
|
|
|
Package token defines the tokens that are produced when lexing Risor code.
|
Package token defines the tokens that are produced when lexing Risor code. |
Click to show internal directories.
Click to hide internal directories.