Documentation ¶
Index ¶
- Constants
- Variables
- func IsArrayExpr(ast interface{}) bool
- func Position(i interface{}) (scanner.Position, bool)
- func Register(p *parser.Parser)
- func RegisterExpr(p *parser.Parser)
- func RegisterModule(p *parser.Parser)
- func RegisterStmt(p *parser.Parser)
- func ToArrayExpr(ast interface{}) interface{}
- func ToScalarExpr(ast interface{}) interface{}
- type AArAssign
- type AArray
- type AConcat
- type AExIfElse
- type AHash
- type EArrayScalar
- type EBinop
- type EBinopAssign
- type ECreateArray
- type ECreateHash
- type EExIfElse
- type EFromArray
- type EGoFunction
- type EHashScalar
- type ELiteral
- type EMatch
- type EMatchGlobal
- type EModCall
- type EModule
- type EObjCall
- type EReplace
- type EScAssign
- type EScalar
- type ESubCall
- type EUnop
- type MDPackage
- type MDSub
- type Module
- type SArray
- type SBlock
- type SCond
- type SEval
- type SExpr
- type SFor
- type SIfElse
- type SLoopJump
- type SMyVars
- type SNoop
- type SPrint
- type SRequireDynamic
- type SRequireStatic
Constants ¶
View Source
const ( KW_min_ rune = -(100 + iota) KW_undef KW_and KW_or KW_eq KW_ne KW_lt KW_le KW_gt KW_ge KW_m KW_s KW_my KW_if KW_unless KW_while KW_else KW_sub KW_for KW_do KW_eval KW_package KW_max_ )
Variables ¶
View Source
var Keywords = scanlist.TokenDict{ "undef": KW_undef, "and": KW_and, "or": KW_or, "eq": KW_eq, "ne": KW_ne, "lt": KW_lt, "le": KW_le, "gt": KW_gt, "ge": KW_ge, "m": KW_m, "s": KW_s, "my": KW_my, "if": KW_if, "unless": KW_unless, "while": KW_while, "else": KW_else, "sub": KW_sub, "for": KW_for, "do": KW_do, "eval": KW_eval, "package": KW_package, }
Functions ¶
func IsArrayExpr ¶
func IsArrayExpr(ast interface{}) bool
func RegisterExpr ¶
func RegisterModule ¶
func RegisterStmt ¶
func ToArrayExpr ¶
func ToArrayExpr(ast interface{}) interface{}
func ToScalarExpr ¶
func ToScalarExpr(ast interface{}) interface{}
Types ¶
type EArrayScalar ¶
type EArrayScalar struct { Name interface{} // string | expression Index interface{} // expression Pos scanner.Position }
func (*EArrayScalar) String ¶
func (e *EArrayScalar) String() string
type EBinopAssign ¶
func (*EBinopAssign) String ¶
func (e *EBinopAssign) String() string
type ECreateArray ¶
func (*ECreateArray) String ¶
func (e *ECreateArray) String() string
type ECreateHash ¶
func (*ECreateHash) String ¶
func (e *ECreateHash) String() string
type EFromArray ¶
func (*EFromArray) String ¶
func (e *EFromArray) String() string
type EGoFunction ¶
func (*EGoFunction) IsHybrid ¶
func (e *EGoFunction) IsHybrid()
func (*EGoFunction) String ¶
func (e *EGoFunction) String() string
type EHashScalar ¶
type EHashScalar struct { Name interface{} // string | expression Index interface{} // string | expression Pos scanner.Position }
func (*EHashScalar) String ¶
func (e *EHashScalar) String() string
type EMatchGlobal ¶
type EMatchGlobal struct { A interface{} // operand Rx *regexp.Regexp // regexp Pos scanner.Position }
func (*EMatchGlobal) String ¶
func (e *EMatchGlobal) String() string
type EReplace ¶
type SRequireDynamic ¶
type SRequireStatic ¶
Click to show internal directories.
Click to hide internal directories.