script

package
v0.0.0-...-32dd2ce Latest Latest
Warning

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

Go to latest
Published: May 11, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpCall
	OpConditional
	OpAssignment
	OpError
)

Operation types

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

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

func (Operation) Debug

func (op Operation) Debug() string

func (Operation) GetMethod

func (op Operation) GetMethod() string

func (Operation) String

func (op Operation) String() string

type Script

type Script []Operation

func ParseScriptBlock

func ParseScriptBlock(data []byte) Script

func (Script) Debug

func (script Script) Debug() string

func (Script) Print

func (script Script) Print() string

func (Script) Properties

func (script Script) Properties() (out ScriptProperties)

type ScriptParser

type ScriptParser struct {
	Script Script
	// contains filtered or unexported fields
}

func NewScriptParser

func NewScriptParser(data []byte, offset int) ScriptParser

func (*ScriptParser) ParseNext

func (p *ScriptParser) ParseNext() (op Operation, err error)

type ScriptProperties

type ScriptProperties struct {
	ExitTo       int
	HasExit      bool
	LoadedScript int
	LoadsScript  bool
}

Jump to

Keyboard shortcuts

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