Documentation ¶
Index ¶
- Variables
- type AST
- type Block
- func (b *Block) AddField2Var(name, field, val string) error
- func (b *Block) Body() body
- func (b *Block) Child() []*Block
- func (b *Block) Debug()
- func (b *Block) ExecCondition() bool
- func (b *Block) GetVarValue(name string) string
- func (b *Block) InFor() bool
- func (b *Block) InIf() bool
- func (b *Block) InSwitch() bool
- func (b *Block) IsArgs() bool
- func (b *Block) IsBtf() bool
- func (b *Block) IsBuiltinDirective() (string, bool)
- func (b *Block) IsCase() bool
- func (b *Block) IsCo() bool
- func (b *Block) IsDefault() bool
- func (b *Block) IsEvent() bool
- func (b *Block) IsFn() bool
- func (b *Block) IsFor() bool
- func (b *Block) IsGlobal() bool
- func (b *Block) IsIf() bool
- func (b *Block) IsLoad() bool
- func (b *Block) IsSwitch() bool
- func (b *Block) IsVar() bool
- func (b *Block) Iskind(s string) bool
- func (b *Block) Parent() *Block
- func (b *Block) RewriteVar(stm *Statement) error
- func (b *Block) String() string
- func (b *Block) Target1() *Token
- func (b *Block) Target2() *Token
- type ListBody
- type MapBody
- type Statement
- type Token
- type TokenType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTokenNumInLine error = errors.New("token number not match") ErrTokenType error = errors.New("token type not match") ErrTokenValue error = errors.New("token value not match") ErrTokenRegex error = errors.New("token regex not match") ErrTokenCharacterIllegal error = errors.New("token character illegal") ErrIsKeyword error = errors.New("token is keyword") )
View Source
var ( ErrStatementUnknow error = errors.New("unknow statement") ErrMapKVIllegal error = errors.New("map kv format illegal") ErrListElemIllegal error = errors.New("list element format illegal") ErrStatementInferFailed error = errors.New("statement infer failed") ErrStatementTooMany error = errors.New("statement too many") ErrIdentConflict error = errors.New("ident conflict") )
View Source
var ( ErrVariableFormat error = errors.New("variable format illegal") ErrVariableNameEmpty error = errors.New("variable name is empty") ErrVariableNameDuplicated error = errors.New("variable name is duplicated") ErrVariableNotDefined error = errors.New("variable not defined") ErrVariableHasCycle error = errors.New("variable has cycle") ErrVariableValueType error = errors.New("variable's value type illegal") )
Functions ¶
This section is empty.
Types ¶
type AST ¶
type AST struct {
// contains filtered or unexported fields
}
AST store all blocks in the flowl
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
func (*Block) AddField2Var ¶
func (*Block) ExecCondition ¶
func (*Block) GetVarValue ¶
GetVarValue returns the value of the variable, the argument is the variable name
func (*Block) IsBuiltinDirective ¶
func (*Block) RewriteVar ¶
type Statement ¶
type Statement struct {
// contains filtered or unexported fields
}
func NewStatement ¶
func (*Statement) FormatString ¶
type Token ¶
type Token struct {
// contains filtered or unexported fields
}
func (*Token) FormatString ¶
func (*Token) StringEqual ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.