Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExprFunc ¶
type ExprFunc func(args ...interface{}) (interface{}, error)
ExprFunc represents a function that can be called within an expression
type LexerToken ¶
type LexerToken struct { Type TokenType Value interface{} }
type TokenType ¶
type TokenType int //enum
const ( ILLEGAL TokenType = iota // literal operators CHAR // 'a', '爱', ... STRING // "abc" NUMBER // 123, 123.456 treated as float64 BOOL // true, false VARIABLE // a1, b_2, c SELECTOR // a.b.c, ACCESSOR // .a.b // prefix operators NOT // ! NEG // - // normal operators ADD // + SUB // - MUL // * QUO // / REM // % AND // & OR // | XOR // ^ SHL // << SHR // >> // ternary operators TERNARY_IF TERNARY_ELSE // logical operators LAND // && LOR // || // comparer operators EQ // == NEQ // != LT // < GT // > LEQ // <= GEQ // >= // clause operators LPAREN // ( RPAREN // ) LBRACKET // [ RBRACKET // ] FUNC // represent function LITERAL // represent all literal operators CLAUSE // represent all clause operators EOF )
Click to show internal directories.
Click to hide internal directories.