antlr4Lua

package
v1.2.2-sp6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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