parse

package
v0.0.0-...-17edfda Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExpressionTypeDefault = iota
	ExpressionTypeParentheses
	ExpressionTypeArray
	ExpressionTypeCall
	ExpressionTypeIndex
	ExpressionTypeStar
	ExpressionTypeSelector
	ExpressionTypeParameter
	ExpressionTypeResult
)

Variables

View Source
var IsVerbose = false

Functions

This section is empty.

Types

type Expression

type Expression struct {
	Type     int
	Name     string
	NameType string

	Children Expressions
}

func (*Expression) String

func (expr *Expression) String() string

type Expressions

type Expressions []*Expression

func (Expressions) String

func (exprs Expressions) String() string

type Function

type Function struct {
	Level      int
	Name       string
	Params     Expressions
	Results    []string
	Statements []*Statement
}

func (*Function) String

func (f *Function) String() string

type Statement

type Statement struct {
	Level int
	Name  string
	Args  Expressions

	Init *Statement
	Cond *Expression
	Post *Statement
	Body []*Statement
}

func (*Statement) String

func (stmt *Statement) String() string

Jump to

Keyboard shortcuts

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