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 DebugStatement
- type HelpStatement
- type InsertStatement
- type Pair
- type Pairs
- type PrecisionStatement
- type PromptStatement
- type QLAst
- type QLLexer
- type QLLexerImpl
- type QLParser
- type QLParserImpl
- type QLSymType
- type SetStatement
- type Statement
- type TimerStatement
- type Tokenizer
- type UseStatement
- type VerticalStatement
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 = 57360
View Source
const DEBUG = 57356
View Source
const DECIMAL = 57364
View Source
const DOT = 57359
View Source
const (
EOF rune = 0
)
View Source
const EQ = 57361
View Source
const HELP = 57353
View Source
const IDENT = 57362
View Source
const INSERT = 57346
View Source
const INTEGER = 57363
View Source
const INTO = 57347
View Source
const PRECISION = 57354
View Source
const PROMPT = 57357
View Source
const QLEofCode = 1
View Source
const QLErrCode = 2
View Source
const QLFlag = -1000
View Source
const QLInitialStackSize = 16
View Source
const QLLast = 63
View Source
const QLPrivate = 57344
View Source
const RAW = 57366
View Source
const SET = 57349
View Source
const STRING = 57365
View Source
const TIMER = 57355
View Source
const USE = 57348
View Source
const VERTICAL = 57358
Variables ¶
View Source
var ( QLDebug = 0 QLErrorVerbose = true )
View Source
var QLAct = [...]int8{
43, 33, 27, 31, 14, 61, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24, 25, 55, 57, 58,
56, 42, 41, 45, 26, 37, 45, 35, 32, 30,
39, 38, 52, 48, 51, 47, 34, 46, 36, 30,
40, 44, 49, 50, 29, 28, 13, 12, 11, 54,
53, 59, 60, 10, 9, 8, 7, 6, 5, 4,
3, 2, 1,
}
View Source
var QLChk = [...]int16{
-1000, -1, -2, -3, -4, -5, -6, -7, -8, -9,
-10, -11, -12, -13, 4, 6, 7, 8, 9, 10,
11, 12, 13, 14, 15, 16, 5, -14, -15, -16,
20, -21, 20, -23, -22, 20, -20, 21, 20, -21,
-19, 21, 18, -18, -17, 20, 17, 18, 19, -14,
-18, 18, 19, -21, -23, 20, 23, 21, 22, -18,
-18, 24,
}
View Source
var QLDef = [...]int8{
0, -2, 1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 0, 0, 0, 17, 0, 20,
21, 0, 23, 24, 25, 26, 0, 16, 29, 0,
42, 14, 27, 13, 37, 0, 18, 19, 22, 0,
30, 43, 0, 32, 39, 0, 0, 0, 0, 15,
0, 0, 0, 28, 38, 33, 34, 35, 36, 31,
40, 41,
}
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{
0, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000, -1000,
-1000, -1000, -1000, -1000, 19, 8, 7, -1000, 4, -1000,
-1000, 11, -1000, -1000, -1000, -1000, 8, -1000, 1, 3,
-1000, -1000, 20, -1000, 17, 14, -1000, -1000, -1000, 9,
-1000, -1000, 6, -1000, 16, 13, 8, 7, -3, -1000,
6, 6, -19, -1000, -1000, -1000, -1000, -1000, -1000, -1000,
-1000, -1000,
}
View Source
var QLPgo = [...]int8{
0, 62, 61, 60, 59, 58, 57, 56, 55, 54,
53, 48, 47, 46, 2, 45, 44, 41, 0, 40,
38, 3, 36, 1,
}
View Source
var QLR1 = [...]int8{
0, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 4, 3, 2, 2, 5, 6, 20,
7, 8, 9, 10, 11, 12, 13, 21, 21, 14,
14, 15, 15, 22, 22, 22, 22, 23, 23, 18,
18, 17, 16, 19,
}
View Source
var QLR2 = [...]int8{
0, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 2, 2, 4, 2, 1, 2, 1,
1, 1, 2, 1, 1, 1, 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, 21,
22, 23, 24,
}
View Source
var QLTok3 = [...]int8{
0,
}
View Source
var QLToknames = [...]string{
"$end",
"error",
"$unk",
"INSERT",
"INTO",
"USE",
"SET",
"CHUNKED",
"CHUNK_SIZE",
"AUTH",
"HELP",
"PRECISION",
"TIMER",
"DEBUG",
"PROMPT",
"VERTICAL",
"DOT",
"COMMA",
"EQ",
"IDENT",
"INTEGER",
"DECIMAL",
"STRING",
"RAW",
}
Functions ¶
func QLErrorMessage ¶
func QLStatname ¶
Types ¶
type AuthStatement ¶
type AuthStatement struct {
}
type ChunkSizeStatement ¶
type ChunkSizeStatement struct {
Size int64
}
type ChunkedStatement ¶
type ChunkedStatement struct {
}
type DebugStatement ¶
type DebugStatement struct{}
type HelpStatement ¶
type HelpStatement struct {
}
type InsertStatement ¶
type PrecisionStatement ¶
type PrecisionStatement struct {
Precision string
}
type PromptStatement ¶
type PromptStatement struct{}
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 ¶
type TimerStatement struct {
}
type Tokenizer ¶
type Tokenizer struct {
// contains filtered or unexported fields
}
func NewTokenizer ¶
type UseStatement ¶
type VerticalStatement ¶
type VerticalStatement struct{}
Click to show internal directories.
Click to hide internal directories.