antlr4Lua

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import added in v1.2.7

func Import(name string, f interface{})

Types

type Engine

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

func New

func New() *Engine

func (*Engine) Eval

func (e *Engine) Eval(ctx context.Context, sourceCode string) error

func (*Engine) ImportLibs

func (e *Engine) ImportLibs(libs map[string]interface{})

func (*Engine) MustTranslate

func (e *Engine) MustTranslate(sourceCode string) []*yakvm.Code

func (*Engine) Trans

func (e *Engine) Trans(sourceCode string) ([]*yakvm.Code, error)

type LuaSnippetExecutor

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

func NewLuaSnippetExecutor

func NewLuaSnippetExecutor(code string) *LuaSnippetExecutor

func (*LuaSnippetExecutor) Debug

func (l *LuaSnippetExecutor) Debug()

func (*LuaSnippetExecutor) Run

func (l *LuaSnippetExecutor) Run()

func (*LuaSnippetExecutor) SmartRun

func (l *LuaSnippetExecutor) SmartRun()

SmartRun SmartRun() will choose Run() or Debug() depending on the environment setting `LUA_DEBUG`

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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