langstarlark

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeterministicBuiltinModules = map[string]func() (starlark.StringDict, error){
		"reflect":  func() (starlark.StringDict, error) { return reflect.Load(), nil },
		"parsecmd": func() (starlark.StringDict, error) { return parsecmd.Load(), nil },
		"txtar":    func() (starlark.StringDict, error) { return txtar.Load(), nil },
	}
	PermissiveBuiltinModules = make(map[string]func() (starlark.StringDict, error))

	DeterministicBuiltinValues = map[string]starlark.Value{
		"struct": starlark.NewBuiltin("struct", starlarkstruct.Make),
		"module": starlark.NewBuiltin("module", starlarkstruct.MakeModule),
		"symbol": starlark.NewBuiltin("gensym", starlarkutils.GenSymbol),
		"fail":   starlarktest.FailBuiltin,
		"assert": starlarktest.AssertBuiltin,
		"catch":  starlarktest.CatchBuiltin,
	}
	PermissiveBuiltinValues map[string]starlark.Value
)
View Source
var (
	DeterministicCatalogLang = lang.CatalogLang{New: NewDeterministic, Exts: []string{"kitteh"}}
	PermissiveCatalogLang    = lang.CatalogLang{New: NewPermissive, Exts: []string{"starlark", "star"}}
)
View Source
var (
	ErrUnknownType = errors.New("(starlark) unknown type")
)
View Source
var NilValues *values = nil // must always be nil

Functions

func NewDeterministic

func NewDeterministic(l L.L, name string) (lang.Lang, error)

func NewNaiveValues

func NewNaiveValues() *values

func NewPermissive

func NewPermissive(l L.L, name string) (lang.Lang, error)

Types

This section is empty.

Directories

Path Synopsis
modules
Adapted from https://github.com/google/starlark-go/blob/master/starlarktest/starlarktest.go.
Adapted from https://github.com/google/starlark-go/blob/master/starlarktest/starlarktest.go.

Jump to

Keyboard shortcuts

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