Documentation ¶
Index ¶
- Constants
- func Evaluate(statement Statement, env Env) (interface{}, error)
- type AttrStatement
- type AttrValueExpression
- type BoolExpression
- type CompStatement
- type Env
- type Expression
- type ExpressionStatement
- type GroupStatement
- type IdentifierExpression
- type Lexer
- type LogStatement
- type NumberExpression
- type ParenStatement
- type Position
- type RegexStatement
- type Scanner
- type Statement
- type Token
Constants ¶
View Source
const ( EOF = -1 UNKNOWN = 0 )
View Source
const AND = 57362
View Source
const CO = 57355
View Source
const EQ = 57353
View Source
const EW = 57357
View Source
const FALSE = 57348
View Source
const GE = 57359
View Source
const GT = 57358
View Source
const IDENT = 57346
View Source
const LBOXP = 57367
View Source
const LE = 57361
View Source
const LPAREN = 57365
View Source
const LT = 57360
View Source
const NE = 57354
View Source
const NOT = 57364
View Source
const NULL = 57349
View Source
const NUMBER = 57351
View Source
const OR = 57363
View Source
const PR = 57352
View Source
const RBOXP = 57368
View Source
const RPAREN = 57366
View Source
const SP = 57369
View Source
const SW = 57356
View Source
const TRUE = 57347
View Source
const VALUE = 57350
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttrStatement ¶
type AttrStatement struct { Attr Expression Operator string }
type AttrValueExpression ¶
type AttrValueExpression struct {
Lit string
}
type BoolExpression ¶
type BoolExpression struct {
Lit bool
}
type CompStatement ¶
type CompStatement struct { LHE Expression Operator string RHE Expression }
type Expression ¶
type Expression interface {
// contains filtered or unexported methods
}
type ExpressionStatement ¶
type ExpressionStatement struct {
Expr Expression
}
type GroupStatement ¶
type GroupStatement struct { ParentAttr Expression SubStatement Statement }
type IdentifierExpression ¶
type IdentifierExpression struct {
Lit string
}
type LogStatement ¶
type NumberExpression ¶
type NumberExpression struct {
Lit int
}
type ParenStatement ¶
type RegexStatement ¶
type RegexStatement struct { LHE Expression Operator string Value interface{} }
Click to show internal directories.
Click to hide internal directories.