goja_modules

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIdentifiers

func GetIdentifiers(p *ast.Program) map[string]string

func GetIdentifiers(p *ast.Program) []string {

Types

type JSCode

type JSCode struct {
	// contains filtered or unexported fields
}

to store info on a js prog

func NewJSCode

func NewJSCode(code string, func_map map[string]any) (*JSCode, error)

func (*JSCode) Run

func (js *JSCode) Run(symtab map[string]any, logger *slog.Logger) (val any, err error)

func (*JSCode) SetSymbolTable

func (js *JSCode) SetSymbolTable(symtab map[string]any, logger *slog.Logger)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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