Documentation
¶
Index ¶
- Constants
- Variables
- func QLErrorMessage(state, lookAhead int) string
- func QLParse(QLlex QLLexer) int
- func QLStatname(s int) string
- func QLTokname(c int) string
- func QLlex1(lex QLLexer, lval *QLSymType) (char, token int)
- type AuthStatement
- type ChunkSizeStatement
- type ChunkedStatement
- type InsertStatement
- type Pair
- type Pairs
- type PrecisionStatement
- type QLAst
- type QLLexer
- type QLLexerImpl
- type QLParser
- type QLParserImpl
- type QLSymType
- type SetStatement
- type Statement
- type TimerStatement
- type Tokenizer
- type UseStatement
Constants ¶
View Source
const ( EOF_TOKEN int = iota WS_TOKEN BAD_STRING BAD_ESCAPE BAD_RAW ILLEGAL_TOKEN )
View Source
const AUTH = 57352
View Source
const CHUNKED = 57350
View Source
const CHUNK_SIZE = 57351
View Source
const COMMA = 57356
View Source
const DECIMAL = 57360
View Source
const DOT = 57355
View Source
const (
EOF rune = 0
)
View Source
const EQ = 57357
View Source
const IDENT = 57358
View Source
const INSERT = 57346
View Source
const INTEGER = 57359
View Source
const INTO = 57347
View Source
const PRECISION = 57353
View Source
const QLEofCode = 1
View Source
const QLErrCode = 2
View Source
const QLFlag = -1000
View Source
const QLInitialStackSize = 16
View Source
const QLLast = 55
View Source
const QLPrivate = 57344
View Source
const RAW = 57362
View Source
const SET = 57349
View Source
const STRING = 57361
View Source
const TIMER = 57354
View Source
const USE = 57348
Variables ¶
View Source
var ( QLDebug = 0 QLErrorVerbose = true )
View Source
var QLAct = [...]int8{
35, 25, 19, 23, 47, 49, 50, 48, 10, 53,
11, 12, 13, 14, 15, 16, 17, 34, 33, 37,
18, 37, 31, 29, 27, 24, 22, 30, 44, 40,
43, 22, 39, 38, 41, 42, 26, 28, 32, 36,
21, 46, 45, 51, 52, 20, 9, 8, 7, 6,
5, 4, 3, 2, 1,
}
View Source
var QLChk = [...]int16{
-1000, -1, -2, -3, -4, -5, -6, -7, -8, -9,
4, 6, 7, 8, 9, 10, 11, 12, 5, -10,
-11, -12, 16, -17, 16, -19, -18, 16, -16, 17,
16, -17, -15, 17, 14, -14, -13, 16, 13, 14,
15, -10, -14, 14, 15, -17, -19, 16, 19, 17,
18, -14, -14, 20,
}
View Source
var QLDef = [...]int8{
0, -2, 1, 2, 3, 4, 5, 6, 7, 8,
0, 0, 0, 13, 0, 16, 0, 18, 0, 12,
21, 0, 34, 10, 19, 9, 29, 0, 14, 15,
17, 0, 22, 35, 0, 24, 31, 0, 0, 0,
0, 11, 0, 0, 0, 20, 30, 25, 26, 27,
28, 23, 32, 33,
}
View Source
var QLErrorMessages = [...]struct { state int token int msg string }{}
View Source
var QLExca = [...]int8{
-1, 1,
1, -1,
-2, 0,
}
View Source
var QLPact = [...]int16{
4, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000,
15, 9, 8, -1000, 6, -1000, 11, -1000, 9, -1000,
1, 3, -1000, -1000, 20, -1000, 18, 14, -1000, -1000,
-1000, 10, -1000, -1000, 5, -1000, 16, 13, 9, 8,
-12, -1000, 5, 5, -11, -1000, -1000, -1000, -1000, -1000,
-1000, -1000, -1000, -1000,
}
View Source
var QLPgo = [...]int8{
0, 54, 53, 52, 51, 50, 49, 48, 47, 46,
2, 45, 40, 39, 0, 38, 37, 3, 36, 1,
}
View Source
var QLR1 = [...]int8{
0, 1, 1, 1, 1, 1, 1, 1, 1, 4,
3, 2, 2, 5, 6, 16, 7, 8, 9, 17,
17, 10, 10, 11, 11, 18, 18, 18, 18, 19,
19, 14, 14, 13, 12, 15,
}
View Source
var QLR2 = [...]int8{
0, 1, 1, 1, 1, 1, 1, 1, 1, 2,
2, 4, 2, 1, 2, 1, 1, 2, 1, 1,
3, 1, 2, 4, 2, 3, 3, 3, 3, 1,
3, 1, 3, 3, 1, 1,
}
View Source
var QLStatenames = [...]string{}
View Source
var QLTok1 = [...]int8{
1,
}
View Source
var QLTok2 = [...]int8{
2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, 20,
}
View Source
var QLTok3 = [...]int8{
0,
}
View Source
var QLToknames = [...]string{
"$end",
"error",
"$unk",
"INSERT",
"INTO",
"USE",
"SET",
"CHUNKED",
"CHUNK_SIZE",
"AUTH",
"PRECISION",
"TIMER",
"DOT",
"COMMA",
"EQ",
"IDENT",
"INTEGER",
"DECIMAL",
"STRING",
"RAW",
}
Functions ¶
func QLErrorMessage ¶
func QLStatname ¶
Types ¶
type AuthStatement ¶ added in v1.1.0
type AuthStatement struct { }
type ChunkSizeStatement ¶ added in v1.1.0
type ChunkSizeStatement struct {
Size int64
}
type ChunkedStatement ¶ added in v1.1.0
type ChunkedStatement struct { }
type InsertStatement ¶
type PrecisionStatement ¶ added in v1.1.0
type PrecisionStatement struct {
Precision string
}
type QLLexer ¶
func QLNewLexer ¶
type QLLexerImpl ¶
type QLLexerImpl struct {
// contains filtered or unexported fields
}
func (*QLLexerImpl) Error ¶
func (l *QLLexerImpl) Error(s string)
func (*QLLexerImpl) Lex ¶
func (l *QLLexerImpl) Lex(lval *QLSymType) int
func (*QLLexerImpl) UpdateStmt ¶
func (l *QLLexerImpl) UpdateStmt(stmt Statement)
type QLParser ¶
func QLNewParser ¶
func QLNewParser() QLParser
type QLParserImpl ¶
type QLParserImpl struct {
// contains filtered or unexported fields
}
func (*QLParserImpl) Lookahead ¶
func (p *QLParserImpl) Lookahead() int
func (*QLParserImpl) Parse ¶
func (QLrcvr *QLParserImpl) Parse(QLlex QLLexer) int
type SetStatement ¶
type SetStatement struct {
KVS []Pair
}
type TimerStatement ¶ added in v1.1.0
type TimerStatement struct { }
type Tokenizer ¶
type Tokenizer struct {
// contains filtered or unexported fields
}
func NewTokenizer ¶
type UseStatement ¶
Click to show internal directories.
Click to hide internal directories.