@malloydata/malloy 0.0.56-dev230710162623 → 0.0.56-dev230710183220

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/lang/ast/index.d.ts +1 -0
  2. package/dist/lang/ast/index.js +1 -0
  3. package/dist/lang/ast/query-elements/existing-query.d.ts +3 -3
  4. package/dist/lang/ast/query-elements/existing-query.js +27 -25
  5. package/dist/lang/ast/query-elements/full-query.js +12 -0
  6. package/dist/lang/ast/query-elements/run-query.d.ts +3 -12
  7. package/dist/lang/ast/query-elements/run-query.js +3 -29
  8. package/dist/lang/ast/sources/named-source-or-query.d.ts +10 -0
  9. package/dist/lang/ast/sources/named-source-or-query.js +68 -0
  10. package/dist/lang/ast/sources/named-source.js +4 -4
  11. package/dist/lang/ast/types/malloy-element.d.ts +2 -0
  12. package/dist/lang/ast/types/malloy-element.js +13 -0
  13. package/dist/lang/lib/Malloy/MalloyLexer.d.ts +100 -98
  14. package/dist/lang/lib/Malloy/MalloyLexer.js +1125 -1112
  15. package/dist/lang/lib/Malloy/MalloyParser.d.ts +361 -273
  16. package/dist/lang/lib/Malloy/MalloyParser.js +3400 -2852
  17. package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +218 -100
  18. package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +135 -61
  19. package/dist/lang/malloy-to-ast.d.ts +17 -8
  20. package/dist/lang/malloy-to-ast.js +117 -61
  21. package/dist/lang/parse-malloy.d.ts +2 -0
  22. package/dist/lang/parse-malloy.js +2 -0
  23. package/dist/lang/parse-tree-walkers/document-symbol-walker.js +1 -10
  24. package/dist/lang/test/document-symbol-walker.spec.js +1 -1
  25. package/dist/lang/test/parse.spec.js +267 -18
  26. package/dist/lang/test/sql-block.spec.js +52 -2
  27. package/dist/lang/test/strings.spec.js +1 -1
  28. package/dist/tags.d.ts +1 -0
  29. package/dist/tags.js +10 -3
  30. package/package.json +1 -1
@@ -76,6 +76,7 @@ export * from './query-properties/qop-desc';
76
76
  export * from './query-properties/sampling';
77
77
  export * from './query-properties/top';
78
78
  export * from './sources/named-source';
79
+ export * from './sources/named-source-or-query';
79
80
  export * from './sources/query-source';
80
81
  export * from './sources/from-sql-source';
81
82
  export * from './sources/sql-source';
@@ -114,6 +114,7 @@ __exportStar(require("./query-properties/qop-desc"), exports);
114
114
  __exportStar(require("./query-properties/sampling"), exports);
115
115
  __exportStar(require("./query-properties/top"), exports);
116
116
  __exportStar(require("./sources/named-source"), exports);
117
+ __exportStar(require("./sources/named-source-or-query"), exports);
117
118
  __exportStar(require("./sources/query-source"), exports);
118
119
  __exportStar(require("./sources/from-sql-source"), exports);
119
120
  __exportStar(require("./sources/sql-source"), exports);
@@ -3,9 +3,9 @@ import { PipelineDesc } from '../elements/pipeline-desc';
3
3
  import { ModelEntryReference } from '../types/malloy-element';
4
4
  import { QueryComp } from '../types/query-comp';
5
5
  export declare class ExistingQuery extends PipelineDesc {
6
- _head?: ModelEntryReference;
7
- set head(head: ModelEntryReference | undefined);
8
- get head(): ModelEntryReference | undefined;
6
+ _head?: ModelEntryReference | string;
7
+ set head(head: ModelEntryReference | string | undefined);
8
+ get head(): ModelEntryReference | string | undefined;
9
9
  queryComp(isRefOk: boolean): QueryComp;
10
10
  query(): Query;
11
11
  }
@@ -30,7 +30,9 @@ const query_head_struct_1 = require("./query-head-struct");
30
30
  class ExistingQuery extends pipeline_desc_1.PipelineDesc {
31
31
  set head(head) {
32
32
  this._head = head;
33
- this.has({ head: head });
33
+ if (head && typeof head !== 'string') {
34
+ this.has({ head: head });
35
+ }
34
36
  }
35
37
  get head() {
36
38
  return this._head;
@@ -39,40 +41,40 @@ class ExistingQuery extends pipeline_desc_1.PipelineDesc {
39
41
  if (!this.head) {
40
42
  throw this.internalError("can't make query from nameless query");
41
43
  }
42
- const queryEntry = this.modelEntry(this.head);
43
- const seedQuery = queryEntry === null || queryEntry === void 0 ? void 0 : queryEntry.entry;
44
+ const headEntry = this.modelEntry(this.head);
45
+ const head = headEntry === null || headEntry === void 0 ? void 0 : headEntry.entry;
44
46
  const oops = function () {
45
47
  return {
46
48
  outputStruct: error_factory_1.ErrorFactory.structDef,
47
49
  query: error_factory_1.ErrorFactory.query,
48
50
  };
49
51
  };
50
- if (!seedQuery) {
52
+ if (!head) {
51
53
  this.log(`Reference to undefined query '${this.head}'`);
52
54
  return oops();
53
55
  }
54
- if (seedQuery.type !== 'query') {
55
- this.log(`Illegal reference to '${this.head}', query expected`);
56
- return oops();
57
- }
58
- const queryHead = new query_head_struct_1.QueryHeadStruct(seedQuery.structRef);
59
- this.has({ queryHead: queryHead });
60
- const exploreStruct = queryHead.structDef();
61
- const exploreFS = new static_space_1.StaticSpace(exploreStruct);
62
- const sourcePipe = this.refinePipeline(exploreFS, seedQuery);
63
- const walkStruct = this.getOutputStruct(exploreStruct, sourcePipe.pipeline);
64
- const appended = this.appendOps(sourcePipe.pipeline, new static_space_1.StaticSpace(walkStruct));
65
- const destPipe = { ...sourcePipe, pipeline: appended.opList };
66
- const query = {
67
- type: 'query',
68
- ...destPipe,
69
- structRef: isRefOk ? queryHead.structRef() : queryHead.structDef(),
70
- location: this.location,
71
- };
72
- if (seedQuery.annotation) {
73
- query.annotation = seedQuery.annotation;
56
+ if (head.type === 'query') {
57
+ const queryHead = new query_head_struct_1.QueryHeadStruct(head.structRef);
58
+ this.has({ queryHead: queryHead });
59
+ const exploreStruct = queryHead.structDef();
60
+ const exploreFS = new static_space_1.StaticSpace(exploreStruct);
61
+ const sourcePipe = this.refinePipeline(exploreFS, head);
62
+ const walkStruct = this.getOutputStruct(exploreStruct, sourcePipe.pipeline);
63
+ const appended = this.appendOps(sourcePipe.pipeline, new static_space_1.StaticSpace(walkStruct));
64
+ const destPipe = { ...sourcePipe, pipeline: appended.opList };
65
+ const query = {
66
+ type: 'query',
67
+ ...destPipe,
68
+ structRef: isRefOk ? queryHead.structRef() : queryHead.structDef(),
69
+ location: this.location,
70
+ };
71
+ if (head.annotation) {
72
+ query.annotation = head.annotation;
73
+ }
74
+ return { outputStruct: appended.structDef, query };
74
75
  }
75
- return { outputStruct: appended.structDef, query };
76
+ this.log(`Illegal reference to '${this.head}', query expected`);
77
+ return oops();
76
78
  }
77
79
  query() {
78
80
  return this.queryComp(true).query;
@@ -46,6 +46,18 @@ class FullQuery extends turtle_headed_pipe_1.TurtleHeadedPipe {
46
46
  ? structRef
47
47
  : this.explore.structDef();
48
48
  let pipeFs = new static_space_1.StaticSpace(structDef);
49
+ // TODO update the compiler to allow for a SQL-headed query with 0 stages,
50
+ // which just runs the SQL. This would also allow us in ExistingQuery
51
+ // to error on `my_sql_query refine { ... }` by checking if it is a 0
52
+ // stage query.
53
+ if (structDef.structSource.type === 'sql' &&
54
+ this.qops.length === 0 &&
55
+ !this.turtleName) {
56
+ destQuery.pipeline.push({
57
+ type: 'project',
58
+ fields: ['*'],
59
+ });
60
+ }
49
61
  if (error_factory_1.ErrorFactory.isErrorStructDef(structDef)) {
50
62
  return {
51
63
  outputStruct: structDef,
@@ -1,22 +1,13 @@
1
1
  import { Annotation } from '../../../model';
2
- import { DocStatement, Document, MalloyElement, ModelEntryReference } from '../types/malloy-element';
2
+ import { DocStatement, Document, MalloyElement } from '../types/malloy-element';
3
3
  import { Noteable, extendNoteMethod } from '../types/noteable';
4
4
  import { QueryElement } from '../types/query-element';
5
- declare abstract class RunQuery extends MalloyElement implements DocStatement {
6
- elementType: string;
7
- abstract execute(doc: Document): void;
8
- }
9
- export declare class RunQueryDef extends RunQuery implements Noteable {
5
+ export declare class RunQuery extends MalloyElement implements DocStatement, Noteable {
10
6
  readonly theQuery: QueryElement;
7
+ elementType: string;
11
8
  note?: Annotation;
12
9
  readonly isNoteableObj = true;
13
10
  extendNote: typeof extendNoteMethod;
14
11
  constructor(theQuery: QueryElement);
15
12
  execute(doc: Document): void;
16
13
  }
17
- export declare class RunQueryRef extends RunQuery {
18
- readonly queryName: ModelEntryReference;
19
- constructor(queryName: ModelEntryReference);
20
- execute(doc: Document): void;
21
- }
22
- export {};
@@ -22,19 +22,14 @@
22
22
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
  */
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.RunQueryRef = exports.RunQueryDef = void 0;
25
+ exports.RunQuery = void 0;
26
26
  const malloy_element_1 = require("../types/malloy-element");
27
27
  const noteable_1 = require("../types/noteable");
28
28
  class RunQuery extends malloy_element_1.MalloyElement {
29
- constructor() {
30
- super(...arguments);
31
- this.elementType = 'runQuery';
32
- }
33
- }
34
- class RunQueryDef extends RunQuery {
35
29
  constructor(theQuery) {
36
30
  super();
37
31
  this.theQuery = theQuery;
32
+ this.elementType = 'runQuery';
38
33
  this.isNoteableObj = true;
39
34
  this.extendNote = noteable_1.extendNoteMethod;
40
35
  this.has({ query: theQuery });
@@ -52,26 +47,5 @@ class RunQueryDef extends RunQuery {
52
47
  return undefined;
53
48
  }
54
49
  }
55
- exports.RunQueryDef = RunQueryDef;
56
- class RunQueryRef extends RunQuery {
57
- constructor(queryName) {
58
- super();
59
- this.queryName = queryName;
60
- this.has({ queryName });
61
- }
62
- execute(doc) {
63
- const found = doc.getEntry(this.queryName.refString);
64
- if (found === undefined) {
65
- this.queryName.log(`${this.queryName} is not defined`);
66
- }
67
- if (found.entry.type === 'query') {
68
- doc.queryList.push(found.entry);
69
- return undefined;
70
- }
71
- else {
72
- this.queryName.log(`${this.queryName} is not a query`);
73
- }
74
- }
75
- }
76
- exports.RunQueryRef = RunQueryRef;
50
+ exports.RunQuery = RunQuery;
77
51
  //# sourceMappingURL=run-query.js.map
@@ -0,0 +1,10 @@
1
+ import { StructDef } from '../../../model';
2
+ import { Source } from '../elements/source';
3
+ import { ModelEntryReference } from '../types/malloy-element';
4
+ export declare class NamedSourceOrQuery extends Source {
5
+ readonly ref: ModelEntryReference;
6
+ elementType: string;
7
+ constructor(ref: ModelEntryReference);
8
+ private getSource;
9
+ structDef(): StructDef;
10
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright 2023 Google LLC
4
+ *
5
+ * Permission is hereby granted, free of charge, to any person obtaining
6
+ * a copy of this software and associated documentation files
7
+ * (the "Software"), to deal in the Software without restriction,
8
+ * including without limitation the rights to use, copy, modify, merge,
9
+ * publish, distribute, sublicense, and/or sell copies of the Software,
10
+ * and to permit persons to whom the Software is furnished to do so,
11
+ * subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be
14
+ * included in all copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
+ */
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.NamedSourceOrQuery = void 0;
26
+ const source_1 = require("../elements/source");
27
+ const error_factory_1 = require("../error-factory");
28
+ const existing_query_1 = require("../query-elements/existing-query");
29
+ const named_source_1 = require("./named-source");
30
+ const query_source_1 = require("./query-source");
31
+ class NamedSourceOrQuery extends source_1.Source {
32
+ constructor(ref) {
33
+ super();
34
+ this.ref = ref;
35
+ this.elementType = 'namedSourceOrQuery';
36
+ this.has({ ref: ref });
37
+ }
38
+ getSource() {
39
+ const modelEnt = this.modelEntry(this.ref);
40
+ const entry = modelEnt === null || modelEnt === void 0 ? void 0 : modelEnt.entry;
41
+ if (!entry) {
42
+ const undefMsg = `Undefined query or source '${this.ref.refString}'`;
43
+ this.ref.log(undefMsg);
44
+ return;
45
+ }
46
+ if (entry.type === 'query') {
47
+ const existingQuery = new existing_query_1.ExistingQuery();
48
+ existingQuery.head = this.ref;
49
+ return new query_source_1.QuerySource(existingQuery);
50
+ }
51
+ else if (entry.type === 'struct') {
52
+ return new named_source_1.NamedSource(this.ref);
53
+ }
54
+ else {
55
+ this.log(`'${this.ref.refString}' is a ${entry.type}, not a query or source`);
56
+ }
57
+ }
58
+ structDef() {
59
+ const source = this.getSource();
60
+ this.has({ source });
61
+ if (source === undefined) {
62
+ return error_factory_1.ErrorFactory.structDef;
63
+ }
64
+ return source.structDef();
65
+ }
66
+ }
67
+ exports.NamedSourceOrQuery = NamedSourceOrQuery;
68
+ //# sourceMappingURL=named-source-or-query.js.map
@@ -74,19 +74,19 @@ class NamedSource extends source_1.Source {
74
74
  return;
75
75
  }
76
76
  if (entry.type === 'query') {
77
- this.log(`Must use 'from()' for query source '${this.refName}`);
77
+ this.log(`Cannot construct a source from a query '${this.refName}'`);
78
78
  return;
79
79
  }
80
80
  else if (entry.type === 'function') {
81
- this.log(`Cannot construct a source from a function '${this.refName}`);
81
+ this.log(`Cannot construct a source from a function '${this.refName}'`);
82
82
  return;
83
83
  }
84
84
  else if (entry.type === 'connection') {
85
- this.log(`Cannot construct a source from a connection '${this.refName}`);
85
+ this.log(`Cannot construct a source from a connection '${this.refName}'`);
86
86
  return;
87
87
  }
88
88
  else if ((0, malloy_types_1.isSQLBlockStruct)(entry) && entry.declaredSQLBlock) {
89
- this.log(`Must use 'from_sql()' for sql source '${this.refName}`);
89
+ this.log(`Must use 'from_sql()' for sql source '${this.refName}'`);
90
90
  return;
91
91
  }
92
92
  return { ...entry };
@@ -1,4 +1,5 @@
1
1
  import { Annotation, DocumentLocation, DocumentReference, ModelDef, Query, SQLBlockStructDef } from '../../../model/malloy_types';
2
+ import { MalloyTagProperties } from '../../../tags';
2
3
  import { LogSeverity } from '../../parse-log';
3
4
  import { MalloyTranslation } from '../../parse-malloy';
4
5
  import { ModelDataRequest } from '../../translate-response';
@@ -121,6 +122,7 @@ export declare class ObjectAnnotation extends MalloyElement {
121
122
  }
122
123
  export declare class ModelAnnotation extends ObjectAnnotation implements DocStatement {
123
124
  elementType: string;
125
+ getCompilerFlags(existing: MalloyTagProperties): MalloyTagProperties;
124
126
  execute(doc: Document): void;
125
127
  }
126
128
  export {};
@@ -28,6 +28,7 @@ exports.ModelAnnotation = exports.ObjectAnnotation = exports.Document = exports.
28
28
  */
29
29
  const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
30
30
  const malloy_types_1 = require("../../../model/malloy_types");
31
+ const tags_1 = require("../../../tags");
31
32
  const global_name_space_1 = require("./global-name-space");
32
33
  const noteable_1 = require("./noteable");
33
34
  class MalloyElement {
@@ -462,6 +463,18 @@ class ModelAnnotation extends ObjectAnnotation {
462
463
  super(...arguments);
463
464
  this.elementType = 'modelAnnotation';
464
465
  }
466
+ getCompilerFlags(existing) {
467
+ let flags = { ...existing };
468
+ for (const note of this.notes) {
469
+ if (note.startsWith('##! ')) {
470
+ const parsed = (0, tags_1.parseTagProperties)(note.slice(4), flags);
471
+ if (parsed) {
472
+ flags = parsed;
473
+ }
474
+ }
475
+ }
476
+ return flags;
477
+ }
465
478
  execute(doc) {
466
479
  doc.notes = doc.notes.concat(this.notes);
467
480
  }
@@ -52,104 +52,106 @@ export declare class MalloyLexer extends Lexer {
52
52
  static readonly ELSE = 47;
53
53
  static readonly END = 48;
54
54
  static readonly EXCLUDE = 49;
55
- static readonly FALSE = 50;
56
- static readonly FOR = 51;
57
- static readonly FROM = 52;
58
- static readonly FROM_SQL = 53;
59
- static readonly HAS = 54;
60
- static readonly HOUR = 55;
61
- static readonly IMPORT = 56;
62
- static readonly IS = 57;
63
- static readonly JSON = 58;
64
- static readonly LAST = 59;
65
- static readonly MAX = 60;
66
- static readonly MIN = 61;
67
- static readonly MINUTE = 62;
68
- static readonly MONTH = 63;
69
- static readonly NOT = 64;
70
- static readonly NOW = 65;
71
- static readonly NULL = 66;
72
- static readonly NUMBER = 67;
73
- static readonly ON = 68;
74
- static readonly OR = 69;
75
- static readonly PICK = 70;
76
- static readonly QUARTER = 71;
77
- static readonly SECOND = 72;
78
- static readonly STRING = 73;
79
- static readonly SUM = 74;
80
- static readonly SQL = 75;
81
- static readonly TABLE = 76;
82
- static readonly THEN = 77;
83
- static readonly THIS = 78;
84
- static readonly TIMESTAMP = 79;
85
- static readonly TO = 80;
86
- static readonly TRUE = 81;
87
- static readonly TURTLE = 82;
88
- static readonly WEEK = 83;
89
- static readonly WHEN = 84;
90
- static readonly WITH = 85;
91
- static readonly YEAR = 86;
92
- static readonly UNGROUPED = 87;
93
- static readonly STRING_ESCAPE = 88;
94
- static readonly HACKY_REGEX = 89;
95
- static readonly SQ_STRING = 90;
96
- static readonly DQ_STRING = 91;
97
- static readonly BQ_STRING = 92;
98
- static readonly DOC_ANNOTATION = 93;
99
- static readonly ANNOTATION = 94;
100
- static readonly AMPER = 95;
101
- static readonly ARROW = 96;
102
- static readonly FAT_ARROW = 97;
103
- static readonly OPAREN = 98;
104
- static readonly CPAREN = 99;
105
- static readonly OBRACK = 100;
106
- static readonly CBRACK = 101;
107
- static readonly OCURLY = 102;
108
- static readonly CCURLY = 103;
109
- static readonly DOUBLECOLON = 104;
110
- static readonly TRIPLECOLON = 105;
111
- static readonly EXCLAM = 106;
112
- static readonly COLON = 107;
113
- static readonly COMMA = 108;
114
- static readonly DOT = 109;
115
- static readonly LT = 110;
116
- static readonly GT = 111;
117
- static readonly EQ = 112;
118
- static readonly NE = 113;
119
- static readonly LTE = 114;
120
- static readonly GTE = 115;
121
- static readonly PLUS = 116;
122
- static readonly MINUS = 117;
123
- static readonly STAR = 118;
124
- static readonly STARSTAR = 119;
125
- static readonly SLASH = 120;
126
- static readonly BAR = 121;
127
- static readonly SEMI = 122;
128
- static readonly NOT_MATCH = 123;
129
- static readonly MATCH = 124;
130
- static readonly PERCENT = 125;
131
- static readonly DOUBLE_QMARK = 126;
132
- static readonly QMARK = 127;
133
- static readonly LITERAL_TIMESTAMP = 128;
134
- static readonly LITERAL_HOUR = 129;
135
- static readonly LITERAL_DAY = 130;
136
- static readonly LITERAL_QUARTER = 131;
137
- static readonly LITERAL_MONTH = 132;
138
- static readonly LITERAL_WEEK = 133;
139
- static readonly LITERAL_YEAR = 134;
140
- static readonly IDENTIFIER = 135;
141
- static readonly PERCENT_LITERAL = 136;
142
- static readonly INTEGER_LITERAL = 137;
143
- static readonly NUMERIC_LITERAL = 138;
144
- static readonly BLOCK_COMMENT = 139;
145
- static readonly COMMENT_TO_EOL = 140;
146
- static readonly WHITE_SPACE = 141;
147
- static readonly SQL_BEGIN = 142;
148
- static readonly CLOSE_CODE = 143;
149
- static readonly UNWATED_CHARS_TRAILING_NUMBERS = 144;
150
- static readonly UNEXPECTED_CHAR = 145;
151
- static readonly OPEN_CODE = 146;
152
- static readonly SQL_END = 147;
55
+ static readonly EXTEND = 50;
56
+ static readonly FALSE = 51;
57
+ static readonly FOR = 52;
58
+ static readonly FROM = 53;
59
+ static readonly FROM_SQL = 54;
60
+ static readonly HAS = 55;
61
+ static readonly HOUR = 56;
62
+ static readonly IMPORT = 57;
63
+ static readonly IS = 58;
64
+ static readonly JSON = 59;
65
+ static readonly LAST = 60;
66
+ static readonly MAX = 61;
67
+ static readonly MIN = 62;
68
+ static readonly MINUTE = 63;
69
+ static readonly MONTH = 64;
70
+ static readonly NOT = 65;
71
+ static readonly NOW = 66;
72
+ static readonly NULL = 67;
73
+ static readonly NUMBER = 68;
74
+ static readonly ON = 69;
75
+ static readonly OR = 70;
76
+ static readonly PICK = 71;
77
+ static readonly QUARTER = 72;
78
+ static readonly REFINE = 73;
79
+ static readonly SECOND = 74;
80
+ static readonly STRING = 75;
81
+ static readonly SUM = 76;
82
+ static readonly SQL = 77;
83
+ static readonly TABLE = 78;
84
+ static readonly THEN = 79;
85
+ static readonly THIS = 80;
86
+ static readonly TIMESTAMP = 81;
87
+ static readonly TO = 82;
88
+ static readonly TRUE = 83;
89
+ static readonly TURTLE = 84;
90
+ static readonly WEEK = 85;
91
+ static readonly WHEN = 86;
92
+ static readonly WITH = 87;
93
+ static readonly YEAR = 88;
94
+ static readonly UNGROUPED = 89;
95
+ static readonly STRING_ESCAPE = 90;
96
+ static readonly HACKY_REGEX = 91;
97
+ static readonly SQ_STRING = 92;
98
+ static readonly DQ_STRING = 93;
99
+ static readonly BQ_STRING = 94;
100
+ static readonly DOC_ANNOTATION = 95;
101
+ static readonly ANNOTATION = 96;
102
+ static readonly AMPER = 97;
103
+ static readonly ARROW = 98;
104
+ static readonly FAT_ARROW = 99;
105
+ static readonly OPAREN = 100;
106
+ static readonly CPAREN = 101;
107
+ static readonly OBRACK = 102;
108
+ static readonly CBRACK = 103;
109
+ static readonly OCURLY = 104;
110
+ static readonly CCURLY = 105;
111
+ static readonly DOUBLECOLON = 106;
112
+ static readonly TRIPLECOLON = 107;
113
+ static readonly EXCLAM = 108;
114
+ static readonly COLON = 109;
115
+ static readonly COMMA = 110;
116
+ static readonly DOT = 111;
117
+ static readonly LT = 112;
118
+ static readonly GT = 113;
119
+ static readonly EQ = 114;
120
+ static readonly NE = 115;
121
+ static readonly LTE = 116;
122
+ static readonly GTE = 117;
123
+ static readonly PLUS = 118;
124
+ static readonly MINUS = 119;
125
+ static readonly STAR = 120;
126
+ static readonly STARSTAR = 121;
127
+ static readonly SLASH = 122;
128
+ static readonly BAR = 123;
129
+ static readonly SEMI = 124;
130
+ static readonly NOT_MATCH = 125;
131
+ static readonly MATCH = 126;
132
+ static readonly PERCENT = 127;
133
+ static readonly DOUBLE_QMARK = 128;
134
+ static readonly QMARK = 129;
135
+ static readonly LITERAL_TIMESTAMP = 130;
136
+ static readonly LITERAL_HOUR = 131;
137
+ static readonly LITERAL_DAY = 132;
138
+ static readonly LITERAL_QUARTER = 133;
139
+ static readonly LITERAL_MONTH = 134;
140
+ static readonly LITERAL_WEEK = 135;
141
+ static readonly LITERAL_YEAR = 136;
142
+ static readonly IDENTIFIER = 137;
143
+ static readonly PERCENT_LITERAL = 138;
144
+ static readonly INTEGER_LITERAL = 139;
145
+ static readonly NUMERIC_LITERAL = 140;
146
+ static readonly BLOCK_COMMENT = 141;
147
+ static readonly COMMENT_TO_EOL = 142;
148
+ static readonly WHITE_SPACE = 143;
149
+ static readonly SQL_BEGIN = 144;
150
+ static readonly CLOSE_CODE = 145;
151
+ static readonly UNWATED_CHARS_TRAILING_NUMBERS = 146;
152
+ static readonly UNEXPECTED_CHAR = 147;
153
+ static readonly OPEN_CODE = 148;
154
+ static readonly SQL_END = 149;
153
155
  static readonly SQL_MODE = 1;
154
156
  static readonly channelNames: string[];
155
157
  static readonly modeNames: string[];