-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtokens.js
More file actions
65 lines (63 loc) · 2.33 KB
/
Copy pathtokens.js
File metadata and controls
65 lines (63 loc) · 2.33 KB
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
// GENERATED by scripts/generate.js - do not edit.
// Source: ClickHouse/ClickHouse@55c2563639c7ab7d90aa85f52351ec35c936bae7, src/Parsers.
/// Numeric values of the TokenType enum in src/Parsers/Lexer.h. The values are
/// positional: they are only valid together with the lexer.wasm built from the
/// same ClickHouse revision, which is what this package guarantees.
export const TokenType = Object.freeze({
Whitespace: 0,
Comment: 1,
BareWord: 2,
Number: 3,
StringLiteral: 4,
QuotedIdentifier: 5,
OpeningRoundBracket: 6,
ClosingRoundBracket: 7,
OpeningSquareBracket: 8,
ClosingSquareBracket: 9,
OpeningCurlyBrace: 10,
ClosingCurlyBrace: 11,
Comma: 12,
Semicolon: 13,
VerticalDelimiter: 14,
Dot: 15,
Asterisk: 16,
HereDoc: 17,
DollarSign: 18,
Plus: 19,
Minus: 20,
Slash: 21,
Percent: 22,
Arrow: 23,
QuestionMark: 24,
Colon: 25,
Caret: 26,
DoubleColon: 27,
Equals: 28,
NotEquals: 29,
Less: 30,
Greater: 31,
LessOrEquals: 32,
GreaterOrEquals: 33,
Spaceship: 34,
PipeMark: 35,
PipeOperator: 36,
Concatenation: 37,
Tilde: 38,
TildeAsterisk: 39,
NotTilde: 40,
NotTildeAsterisk: 41,
At: 42,
DoubleAt: 43,
EndOfStream: 44,
Error: 45,
ErrorMultilineCommentIsNotClosed: 46,
ErrorSingleQuoteIsNotClosed: 47,
ErrorDoubleQuoteIsNotClosed: 48,
ErrorBackQuoteIsNotClosed: 49,
ErrorSingleExclamationMark: 50,
ErrorSinglePipeMark: 51,
ErrorWrongNumber: 52,
ErrorMaxQuerySizeExceeded: 53,
})
/// Token type names by numeric value.
export const TOKEN_NAMES = Object.freeze(["Whitespace","Comment","BareWord","Number","StringLiteral","QuotedIdentifier","OpeningRoundBracket","ClosingRoundBracket","OpeningSquareBracket","ClosingSquareBracket","OpeningCurlyBrace","ClosingCurlyBrace","Comma","Semicolon","VerticalDelimiter","Dot","Asterisk","HereDoc","DollarSign","Plus","Minus","Slash","Percent","Arrow","QuestionMark","Colon","Caret","DoubleColon","Equals","NotEquals","Less","Greater","LessOrEquals","GreaterOrEquals","Spaceship","PipeMark","PipeOperator","Concatenation","Tilde","TildeAsterisk","NotTilde","NotTildeAsterisk","At","DoubleAt","EndOfStream","Error","ErrorMultilineCommentIsNotClosed","ErrorSingleQuoteIsNotClosed","ErrorDoubleQuoteIsNotClosed","ErrorBackQuoteIsNotClosed","ErrorSingleExclamationMark","ErrorSinglePipeMark","ErrorWrongNumber","ErrorMaxQuerySizeExceeded"])