jparser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATICOJB int = iota
	NEWOBJECT
	OBJECTINVOKE
)

Variables

This section is empty.

Functions

func Print

func Print(nodes []Expr) string

Types

type Arg

type Arg struct {
	Typ  int
	ArgN int64
}

func (Arg) String

func (a Arg) String() string

type Assignment

type Assignment struct {
	From Expr
	To   Expr
}

func (*Assignment) String

func (a *Assignment) String() string

type Call

type Call struct {
	ClassTyp int
	Owner    Expr
	Method   *MethodMeta
	Args     []Expr
}

func (*Call) String

func (c *Call) String() string

type Class

type Class struct {
	Name string
}

func (*Class) String

func (c *Class) String() string

type Compiler

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

func (*Compiler) Parse

func (vm *Compiler) Parse(s string) []Expr

type Define

type Define struct {
	Name  string
	Value Expr
}

func (*Define) String

func (c *Define) String() string

type Expr

type Expr interface {
	// contains filtered or unexported methods
}

type MethodMeta

type MethodMeta struct {
	Name string
	Sig  *native.MethodSig
}

type NodeHeap

type NodeHeap []Expr

func (*NodeHeap) Clear

func (h *NodeHeap) Clear()

func (*NodeHeap) Len

func (h *NodeHeap) Len() int

func (*NodeHeap) Pop

func (h *NodeHeap) Pop() (v interface{})

func (*NodeHeap) Push

func (h *NodeHeap) Push(v interface{})

func (*NodeHeap) Root

func (h *NodeHeap) Root() (v interface{})

func (*NodeHeap) Top

func (h *NodeHeap) Top() (v interface{})

type StrHeap

type StrHeap []string

func (*StrHeap) Len

func (h *StrHeap) Len() int

func (*StrHeap) Less

func (h *StrHeap) Less(i, j int) bool

func (*StrHeap) Pop

func (h *StrHeap) Pop() (v interface{})

func (*StrHeap) Push

func (h *StrHeap) Push(v interface{})

func (*StrHeap) Swap

func (h *StrHeap) Swap(i, j int)

Jump to

Keyboard shortcuts

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