forked from sqls-server/sqls
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kind.go
75 lines (73 loc) · 1.02 KB
/
kind.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package token
type Kind int
//go:generate stringer -type Kind kind.go
const (
// A keyword (like SELECT)
SQLKeyword Kind = iota
// Numeric literal
Number
// A character that cloud not be tokenized
Char
// Single quoted string i.e: 'string'
SingleQuotedString
// National string i.e: N'string'
NationalStringLiteral
// Comma
Comma
// Whitespace
Whitespace
// comment node
Comment
// multiline comment node
MultilineComment
// = operator
Eq
// != or <> operator
Neq
// < operator
Lt
// > operator
Gt
// <= operator
LtEq
// >= operator
GtEq
// + operator
Plus
// - operator
Minus
// * operator
Mult
// / operator
Div
// % operator
Caret
// ^ operator
Mod
// Left parenthesis `(`
LParen
// Right parenthesis `)`
RParen
// Period
Period
// Colon
Colon
// DoubleColon
DoubleColon
// Semicolon
Semicolon
// Backslash
Backslash
// Left bracket `]`
LBracket
// Right bracket `[`
RBracket
// &
Ampersand
// Left brace `{`
LBrace
// Right brace `}`
RBrace
// ILLEGAL sqltoken
ILLEGAL
)