parser

package
v0.0.0-...-561e3ec Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2015 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchK

func MatchK(e *lexer.Element, kwr ...rune) *lexer.Element

func MatchT

func MatchT(e *lexer.Element, tks ...rune) *lexer.Element

Types

type ErrMsg

type ErrMsg struct {
	P scanner.Position
	E string
}

type ExprParser

type ExprParser struct {
	Pos []ErrMsg
	Vsp tree.VarSpace
	Tmp tree.TempReg
}

func (*ExprParser) Expression

func (e *ExprParser) Expression(el *lexer.Element) (tree.Expression, *lexer.Element)

func (*ExprParser) Statement

func (e *ExprParser) Statement(el *lexer.Element, dest io.Writer) *lexer.Element

type FuncTempReg

type FuncTempReg struct {
	O int
	N map[int]string
}

func NewFuncTempReg

func NewFuncTempReg() *FuncTempReg

func (*FuncTempReg) Add

func (f *FuncTempReg) Add(n int)

func (*FuncTempReg) Reg

func (f *FuncTempReg) Reg(n int) string

type FuncVarSpace

type FuncVarSpace struct {
	Base tree.VarSpace
	C    int
	N    map[string]string
}

func NewFuncVarSpace

func NewFuncVarSpace(v tree.VarSpace) *FuncVarSpace

func (*FuncVarSpace) DefineScalar

func (f *FuncVarSpace) DefineScalar(s string)

func (*FuncVarSpace) Scalar

func (f *FuncVarSpace) Scalar(s string) tree.Expression

Jump to

Keyboard shortcuts

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