@malloydata/malloy 0.0.198-dev241010185717 → 0.0.198-dev241011200222

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.
@@ -1,14 +1,17 @@
1
1
  import { ExprValue } from '../types/expr-value';
2
2
  import { FieldSpace } from '../types/field-space';
3
- import { ExpressionDef } from '../types/expression-def';
3
+ import { ATNodeType, ExpressionDef } from '../types/expression-def';
4
4
  import { BinaryMalloyOperator } from '../types/binary_operators';
5
5
  export declare class ExprAlternationTree extends ExpressionDef {
6
6
  readonly left: ExpressionDef;
7
7
  readonly op: '|' | '&';
8
8
  readonly right: ExpressionDef;
9
9
  elementType: string;
10
+ inList?: ExpressionDef[];
10
11
  constructor(left: ExpressionDef, op: '|' | '&', right: ExpressionDef);
11
- apply(fs: FieldSpace, applyOp: BinaryMalloyOperator, expr: ExpressionDef): ExprValue;
12
+ equalityList(): ExpressionDef[];
13
+ apply(fs: FieldSpace, applyOp: BinaryMalloyOperator, expr: ExpressionDef, warnOnComplexTree: boolean): ExprValue;
12
14
  requestExpression(_fs: FieldSpace): ExprValue | undefined;
13
15
  getExpression(_fs: FieldSpace): ExprValue;
16
+ atNodeType(): ATNodeType;
14
17
  }
@@ -25,6 +25,36 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ExprAlternationTree = void 0;
26
26
  const malloy_types_1 = require("../../../model/malloy_types");
27
27
  const expression_def_1 = require("../types/expression-def");
28
+ const binary_operators_1 = require("../types/binary_operators");
29
+ /**
30
+ * Return a flattened version of an alternation tree, if the tree is
31
+ * composed entirely values and "or"s.
32
+ *
33
+ * @param node Root of the tree
34
+ * @returns Undefined if other nodes are found in the tree
35
+ */
36
+ function flattenOrTree(inNode) {
37
+ const node = inNode.atExpr();
38
+ switch (node.atNodeType()) {
39
+ case expression_def_1.ATNodeType.And:
40
+ case expression_def_1.ATNodeType.Partial:
41
+ return undefined;
42
+ case expression_def_1.ATNodeType.Or: {
43
+ if (node instanceof ExprAlternationTree) {
44
+ const left = flattenOrTree(node.left);
45
+ if (left) {
46
+ const right = flattenOrTree(node.right);
47
+ if (right) {
48
+ return [...left, ...right];
49
+ }
50
+ }
51
+ }
52
+ return undefined;
53
+ }
54
+ default:
55
+ return node.granular() ? undefined : [node];
56
+ }
57
+ }
28
58
  class ExprAlternationTree extends expression_def_1.ExpressionDef {
29
59
  constructor(left, op, right) {
30
60
  super({ left, right });
@@ -34,7 +64,38 @@ class ExprAlternationTree extends expression_def_1.ExpressionDef {
34
64
  this.elementType = 'alternation';
35
65
  this.elementType = `${op}alternation${op}`;
36
66
  }
37
- apply(fs, applyOp, expr) {
67
+ equalityList() {
68
+ if (this.inList === undefined) {
69
+ this.inList = flattenOrTree(this) || [];
70
+ }
71
+ return this.inList;
72
+ }
73
+ apply(fs, applyOp, expr, warnOnComplexTree) {
74
+ if ((0, binary_operators_1.isEquality)(applyOp)) {
75
+ const inList = this.equalityList();
76
+ if (inList.length > 0 && (applyOp === '=' || applyOp === '!=')) {
77
+ const isIn = expr.getExpression(fs);
78
+ const values = inList.map(v => v.getExpression(fs));
79
+ let { evalSpace, expressionType } = isIn;
80
+ for (const value of values) {
81
+ evalSpace = (0, malloy_types_1.mergeEvalSpaces)(evalSpace, value.evalSpace);
82
+ expressionType = (0, malloy_types_1.maxExpressionType)(expressionType, value.expressionType);
83
+ }
84
+ return {
85
+ dataType: 'boolean',
86
+ evalSpace,
87
+ expressionType,
88
+ value: {
89
+ node: 'in',
90
+ not: applyOp === '!=',
91
+ kids: { e: isIn.value, oneOf: values.map(v => v.value) },
92
+ },
93
+ };
94
+ }
95
+ if (inList.length === 0 && warnOnComplexTree) {
96
+ this.logWarning('or-choices-only', `Only | seperated values are legal when used with ${applyOp} operator`);
97
+ }
98
+ }
38
99
  const choice1 = this.left.apply(fs, applyOp, expr);
39
100
  const choice2 = this.right.apply(fs, applyOp, expr);
40
101
  return {
@@ -53,6 +114,9 @@ class ExprAlternationTree extends expression_def_1.ExpressionDef {
53
114
  getExpression(_fs) {
54
115
  return this.loggedErrorExpr('alternation-as-value', 'Alternation tree has no value');
55
116
  }
117
+ atNodeType() {
118
+ return this.op === '|' ? expression_def_1.ATNodeType.Or : expression_def_1.ATNodeType.And;
119
+ }
56
120
  }
57
121
  exports.ExprAlternationTree = ExprAlternationTree;
58
122
  //# sourceMappingURL=expr-alternation-tree.js.map
@@ -1,4 +1,4 @@
1
- import { CompareMalloyOperator } from '../types/binary_operators';
1
+ import { BinaryMalloyOperator, CompareMalloyOperator, EqualityMalloyOperator } from '../types/binary_operators';
2
2
  import { ExprValue } from '../types/expr-value';
3
3
  import { ExpressionDef } from '../types/expression-def';
4
4
  import { FieldSpace } from '../types/field-space';
@@ -8,3 +8,23 @@ export declare class ExprCompare extends BinaryBoolean<CompareMalloyOperator> {
8
8
  constructor(left: ExpressionDef, op: CompareMalloyOperator, right: ExpressionDef);
9
9
  getExpression(fs: FieldSpace): ExprValue;
10
10
  }
11
+ /**
12
+ * The parser makes equality nodes, an application of ?
13
+ * makes an ExprCompare node with operator =. This is how
14
+ * the special rules for how apply works for equality
15
+ * nodes gets implemented.
16
+ */
17
+ export declare class ExprEquality extends ExprCompare {
18
+ elementType: string;
19
+ constructor(left: ExpressionDef, op: EqualityMalloyOperator, right: ExpressionDef);
20
+ getExpression(fs: FieldSpace): ExprValue;
21
+ apply(fs: FieldSpace, op: BinaryMalloyOperator, left: ExpressionDef): ExprValue;
22
+ }
23
+ export declare class ExprLegacyIn extends ExpressionDef {
24
+ readonly expr: ExpressionDef;
25
+ readonly notIn: boolean;
26
+ readonly choices: ExpressionDef[];
27
+ elementType: string;
28
+ constructor(expr: ExpressionDef, notIn: boolean, choices: ExpressionDef[]);
29
+ getExpression(fs: FieldSpace): ExprValue;
30
+ }
@@ -22,8 +22,10 @@
22
22
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
  */
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ExprCompare = void 0;
25
+ exports.ExprLegacyIn = exports.ExprEquality = exports.ExprCompare = void 0;
26
+ const model_1 = require("../../../model");
26
27
  const fragtype_utils_1 = require("../fragtype-utils");
28
+ const expression_def_1 = require("../types/expression-def");
27
29
  const binary_boolean_1 = require("./binary-boolean");
28
30
  const compareTypes = {
29
31
  '~': [fragtype_utils_1.FT.stringT],
@@ -46,4 +48,54 @@ class ExprCompare extends binary_boolean_1.BinaryBoolean {
46
48
  }
47
49
  }
48
50
  exports.ExprCompare = ExprCompare;
51
+ /**
52
+ * The parser makes equality nodes, an application of ?
53
+ * makes an ExprCompare node with operator =. This is how
54
+ * the special rules for how apply works for equality
55
+ * nodes gets implemented.
56
+ */
57
+ class ExprEquality extends ExprCompare {
58
+ constructor(left, op, right) {
59
+ super(left, op, right);
60
+ this.elementType = 'a~=b';
61
+ }
62
+ getExpression(fs) {
63
+ return this.right.apply(fs, this.op, this.left, true);
64
+ }
65
+ apply(fs, op, left) {
66
+ return super.apply(fs, op, left, true);
67
+ }
68
+ }
69
+ exports.ExprEquality = ExprEquality;
70
+ class ExprLegacyIn extends expression_def_1.ExpressionDef {
71
+ constructor(expr, notIn, choices) {
72
+ super();
73
+ this.expr = expr;
74
+ this.notIn = notIn;
75
+ this.choices = choices;
76
+ this.elementType = 'in';
77
+ this.has({ expr, choices });
78
+ }
79
+ getExpression(fs) {
80
+ const lookFor = this.expr.getExpression(fs);
81
+ let { evalSpace, expressionType } = lookFor;
82
+ const oneOf = this.choices.map(e => {
83
+ const choice = e.getExpression(fs);
84
+ expressionType = (0, model_1.maxExpressionType)(expressionType, choice.expressionType);
85
+ evalSpace = (0, model_1.mergeEvalSpaces)(evalSpace, choice.evalSpace);
86
+ return choice.value;
87
+ });
88
+ return {
89
+ dataType: 'boolean',
90
+ expressionType,
91
+ evalSpace,
92
+ value: {
93
+ node: 'in',
94
+ not: this.notIn,
95
+ kids: { e: lookFor.value, oneOf },
96
+ },
97
+ };
98
+ }
99
+ }
100
+ exports.ExprLegacyIn = ExprLegacyIn;
49
101
  //# sourceMappingURL=expr-compare.js.map
@@ -1,5 +1,6 @@
1
+ import { BinaryMalloyOperator } from '../types/binary_operators';
1
2
  import { ExprValue } from '../types/expr-value';
2
- import { ExpressionDef } from '../types/expression-def';
3
+ import { ATNodeType, ExpressionDef } from '../types/expression-def';
3
4
  import { FieldSpace } from '../types/field-space';
4
5
  export declare class ExprParens extends ExpressionDef {
5
6
  readonly expr: ExpressionDef;
@@ -7,4 +8,7 @@ export declare class ExprParens extends ExpressionDef {
7
8
  constructor(expr: ExpressionDef);
8
9
  requestExpression(fs: FieldSpace): ExprValue | undefined;
9
10
  getExpression(fs: FieldSpace): ExprValue;
11
+ apply(fs: FieldSpace, op: BinaryMalloyOperator, left: ExpressionDef, doWarn: boolean): ExprValue;
12
+ atNodeType(): ATNodeType;
13
+ atExpr(): ExpressionDef;
10
14
  }
@@ -37,6 +37,18 @@ class ExprParens extends expression_def_1.ExpressionDef {
37
37
  const subExpr = this.expr.getExpression(fs);
38
38
  return { ...subExpr, value: { node: '()', e: subExpr.value } };
39
39
  }
40
+ apply(fs, op, left, doWarn) {
41
+ if (this.expr.atNodeType() === expression_def_1.ATNodeType.Or) {
42
+ return this.expr.apply(fs, op, left, doWarn);
43
+ }
44
+ return (0, expression_def_1.applyBinary)(fs, left, op, this);
45
+ }
46
+ atNodeType() {
47
+ return this.expr.atNodeType();
48
+ }
49
+ atExpr() {
50
+ return this.expr;
51
+ }
40
52
  }
41
53
  exports.ExprParens = ExprParens;
42
54
  //# sourceMappingURL=expr-parens.js.map
@@ -1,6 +1,6 @@
1
1
  import { CompareMalloyOperator } from '../types/binary_operators';
2
2
  import { ExprValue } from '../types/expr-value';
3
- import { ExpressionDef } from '../types/expression-def';
3
+ import { ATNodeType, ExpressionDef } from '../types/expression-def';
4
4
  import { FieldSpace } from '../types/field-space';
5
5
  export declare class PartialCompare extends ExpressionDef {
6
6
  readonly op: CompareMalloyOperator;
@@ -11,4 +11,5 @@ export declare class PartialCompare extends ExpressionDef {
11
11
  apply(fs: FieldSpace, op: string, expr: ExpressionDef): ExprValue;
12
12
  requestExpression(_fs: FieldSpace): ExprValue | undefined;
13
13
  getExpression(_fs: FieldSpace): ExprValue;
14
+ atNodeType(): ATNodeType;
14
15
  }
@@ -43,6 +43,9 @@ class PartialCompare extends expression_def_1.ExpressionDef {
43
43
  getExpression(_fs) {
44
44
  return this.loggedErrorExpr('partial-as-value', 'Partial comparison does not have a value');
45
45
  }
46
+ atNodeType() {
47
+ return expression_def_1.ATNodeType.Partial;
48
+ }
46
49
  }
47
50
  exports.PartialCompare = PartialCompare;
48
51
  //# sourceMappingURL=partial-compare.js.map
@@ -3,6 +3,13 @@ import { ExprValue } from './expr-value';
3
3
  import { FieldSpace } from './field-space';
4
4
  import { MalloyElement } from './malloy-element';
5
5
  import { BinaryMalloyOperator } from './binary_operators';
6
+ /** Node types in an alternation tree */
7
+ export declare enum ATNodeType {
8
+ And = 0,
9
+ Or = 1,
10
+ Value = 2,
11
+ Partial = 3
12
+ }
6
13
  /**
7
14
  * Root node for any element in an expression. These essentially
8
15
  * create a sub-tree in the larger AST. Expression nodes know
@@ -45,11 +52,13 @@ export declare abstract class ExpressionDef extends MalloyElement {
45
52
  * @param expr The "other" (besdies 'this') value
46
53
  * @return The translated expression
47
54
  */
48
- apply(fs: FieldSpace, op: BinaryMalloyOperator, left: ExpressionDef): ExprValue;
55
+ apply(fs: FieldSpace, op: BinaryMalloyOperator, left: ExpressionDef, _warnOnComplexTree?: boolean): ExprValue;
49
56
  canSupportPartitionBy(): boolean;
50
57
  canSupportOrderBy(): boolean;
51
58
  canSupportLimit(): boolean;
52
59
  supportsWhere(expr: ExprValue): boolean;
60
+ atNodeType(): ATNodeType;
61
+ atExpr(): ExpressionDef;
53
62
  }
54
63
  export declare class ExprDuration extends ExpressionDef {
55
64
  readonly n: ExpressionDef;
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
  */
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.applyBinary = exports.getMorphicValue = exports.ExprDuration = exports.ExpressionDef = void 0;
25
+ exports.applyBinary = exports.getMorphicValue = exports.ExprDuration = exports.ExpressionDef = exports.ATNodeType = void 0;
26
26
  const malloy_types_1 = require("../../../model/malloy_types");
27
27
  const ast_utils_1 = require("../ast-utils");
28
28
  const fragtype_utils_1 = require("../fragtype-utils");
@@ -32,6 +32,14 @@ const malloy_element_1 = require("./malloy-element");
32
32
  const binary_operators_1 = require("./binary_operators");
33
33
  class TypeMismatch extends Error {
34
34
  }
35
+ /** Node types in an alternation tree */
36
+ var ATNodeType;
37
+ (function (ATNodeType) {
38
+ ATNodeType[ATNodeType["And"] = 0] = "And";
39
+ ATNodeType[ATNodeType["Or"] = 1] = "Or";
40
+ ATNodeType[ATNodeType["Value"] = 2] = "Value";
41
+ ATNodeType[ATNodeType["Partial"] = 3] = "Partial";
42
+ })(ATNodeType || (exports.ATNodeType = ATNodeType = {}));
35
43
  /**
36
44
  * Root node for any element in an expression. These essentially
37
45
  * create a sub-tree in the larger AST. Expression nodes know
@@ -88,7 +96,7 @@ class ExpressionDef extends malloy_element_1.MalloyElement {
88
96
  * @param expr The "other" (besdies 'this') value
89
97
  * @return The translated expression
90
98
  */
91
- apply(fs, op, left) {
99
+ apply(fs, op, left, _warnOnComplexTree = false) {
92
100
  return applyBinary(fs, left, op, this);
93
101
  }
94
102
  canSupportPartitionBy() {
@@ -103,6 +111,12 @@ class ExpressionDef extends malloy_element_1.MalloyElement {
103
111
  supportsWhere(expr) {
104
112
  return (0, malloy_types_1.expressionIsAggregate)(expr.expressionType);
105
113
  }
114
+ atNodeType() {
115
+ return ATNodeType.Value;
116
+ }
117
+ atExpr() {
118
+ return this;
119
+ }
106
120
  }
107
121
  exports.ExpressionDef = ExpressionDef;
108
122
  class ExprDuration extends ExpressionDef {
@@ -63,100 +63,101 @@ export declare class MalloyLexer extends Lexer {
63
63
  static readonly IMPORT = 58;
64
64
  static readonly INNER = 59;
65
65
  static readonly IS = 60;
66
- static readonly JSON = 61;
67
- static readonly LAST = 62;
68
- static readonly LEFT = 63;
69
- static readonly LIKE = 64;
70
- static readonly MAX = 65;
71
- static readonly MIN = 66;
72
- static readonly MINUTE = 67;
73
- static readonly MONTH = 68;
74
- static readonly NOT = 69;
75
- static readonly NOW = 70;
76
- static readonly NULL = 71;
77
- static readonly NUMBER = 72;
78
- static readonly ON = 73;
79
- static readonly OR = 74;
80
- static readonly PICK = 75;
81
- static readonly QUARTER = 76;
82
- static readonly RIGHT = 77;
83
- static readonly SECOND = 78;
84
- static readonly STRING = 79;
85
- static readonly SOURCE_KW = 80;
86
- static readonly SUM = 81;
87
- static readonly SQL = 82;
88
- static readonly TABLE = 83;
89
- static readonly THEN = 84;
90
- static readonly THIS = 85;
91
- static readonly TIMESTAMP = 86;
92
- static readonly TO = 87;
93
- static readonly TRUE = 88;
94
- static readonly TURTLE = 89;
95
- static readonly WEEK = 90;
96
- static readonly WHEN = 91;
97
- static readonly WITH = 92;
98
- static readonly YEAR = 93;
99
- static readonly UNGROUPED = 94;
100
- static readonly STRING_ESCAPE = 95;
101
- static readonly HACKY_REGEX = 96;
102
- static readonly SQ_STRING = 97;
103
- static readonly DQ_STRING = 98;
104
- static readonly BQ_STRING = 99;
105
- static readonly DOC_ANNOTATION = 100;
106
- static readonly ANNOTATION = 101;
107
- static readonly AMPER = 102;
108
- static readonly ARROW = 103;
109
- static readonly FAT_ARROW = 104;
110
- static readonly OPAREN = 105;
111
- static readonly CPAREN = 106;
112
- static readonly OBRACK = 107;
113
- static readonly CBRACK = 108;
114
- static readonly OCURLY = 109;
115
- static readonly CCURLY = 110;
116
- static readonly DOUBLECOLON = 111;
117
- static readonly TRIPLECOLON = 112;
118
- static readonly EXCLAM = 113;
119
- static readonly COLON = 114;
120
- static readonly COMMA = 115;
121
- static readonly DOT = 116;
122
- static readonly LT = 117;
123
- static readonly GT = 118;
124
- static readonly EQ = 119;
125
- static readonly NE = 120;
126
- static readonly LTE = 121;
127
- static readonly GTE = 122;
128
- static readonly PLUS = 123;
129
- static readonly MINUS = 124;
130
- static readonly STAR = 125;
131
- static readonly STARSTAR = 126;
132
- static readonly SLASH = 127;
133
- static readonly BAR = 128;
134
- static readonly SEMI = 129;
135
- static readonly NOT_MATCH = 130;
136
- static readonly MATCH = 131;
137
- static readonly PERCENT = 132;
138
- static readonly DOUBLE_QMARK = 133;
139
- static readonly QMARK = 134;
140
- static readonly LITERAL_TIMESTAMP = 135;
141
- static readonly LITERAL_HOUR = 136;
142
- static readonly LITERAL_DAY = 137;
143
- static readonly LITERAL_QUARTER = 138;
144
- static readonly LITERAL_MONTH = 139;
145
- static readonly LITERAL_WEEK = 140;
146
- static readonly LITERAL_YEAR = 141;
147
- static readonly IDENTIFIER = 142;
148
- static readonly PERCENT_LITERAL = 143;
149
- static readonly NUMERIC_LITERAL = 144;
150
- static readonly INTEGER_LITERAL = 145;
151
- static readonly BLOCK_COMMENT = 146;
152
- static readonly COMMENT_TO_EOL = 147;
153
- static readonly WHITE_SPACE = 148;
154
- static readonly SQL_BEGIN = 149;
155
- static readonly CLOSE_CODE = 150;
156
- static readonly UNWATED_CHARS_TRAILING_NUMBERS = 151;
157
- static readonly UNEXPECTED_CHAR = 152;
158
- static readonly OPEN_CODE = 153;
159
- static readonly SQL_END = 154;
66
+ static readonly IN = 61;
67
+ static readonly JSON = 62;
68
+ static readonly LAST = 63;
69
+ static readonly LEFT = 64;
70
+ static readonly LIKE = 65;
71
+ static readonly MAX = 66;
72
+ static readonly MIN = 67;
73
+ static readonly MINUTE = 68;
74
+ static readonly MONTH = 69;
75
+ static readonly NOT = 70;
76
+ static readonly NOW = 71;
77
+ static readonly NULL = 72;
78
+ static readonly NUMBER = 73;
79
+ static readonly ON = 74;
80
+ static readonly OR = 75;
81
+ static readonly PICK = 76;
82
+ static readonly QUARTER = 77;
83
+ static readonly RIGHT = 78;
84
+ static readonly SECOND = 79;
85
+ static readonly STRING = 80;
86
+ static readonly SOURCE_KW = 81;
87
+ static readonly SUM = 82;
88
+ static readonly SQL = 83;
89
+ static readonly TABLE = 84;
90
+ static readonly THEN = 85;
91
+ static readonly THIS = 86;
92
+ static readonly TIMESTAMP = 87;
93
+ static readonly TO = 88;
94
+ static readonly TRUE = 89;
95
+ static readonly TURTLE = 90;
96
+ static readonly WEEK = 91;
97
+ static readonly WHEN = 92;
98
+ static readonly WITH = 93;
99
+ static readonly YEAR = 94;
100
+ static readonly UNGROUPED = 95;
101
+ static readonly STRING_ESCAPE = 96;
102
+ static readonly HACKY_REGEX = 97;
103
+ static readonly SQ_STRING = 98;
104
+ static readonly DQ_STRING = 99;
105
+ static readonly BQ_STRING = 100;
106
+ static readonly DOC_ANNOTATION = 101;
107
+ static readonly ANNOTATION = 102;
108
+ static readonly AMPER = 103;
109
+ static readonly ARROW = 104;
110
+ static readonly FAT_ARROW = 105;
111
+ static readonly OPAREN = 106;
112
+ static readonly CPAREN = 107;
113
+ static readonly OBRACK = 108;
114
+ static readonly CBRACK = 109;
115
+ static readonly OCURLY = 110;
116
+ static readonly CCURLY = 111;
117
+ static readonly DOUBLECOLON = 112;
118
+ static readonly TRIPLECOLON = 113;
119
+ static readonly EXCLAM = 114;
120
+ static readonly COLON = 115;
121
+ static readonly COMMA = 116;
122
+ static readonly DOT = 117;
123
+ static readonly LT = 118;
124
+ static readonly GT = 119;
125
+ static readonly EQ = 120;
126
+ static readonly NE = 121;
127
+ static readonly LTE = 122;
128
+ static readonly GTE = 123;
129
+ static readonly PLUS = 124;
130
+ static readonly MINUS = 125;
131
+ static readonly STAR = 126;
132
+ static readonly STARSTAR = 127;
133
+ static readonly SLASH = 128;
134
+ static readonly BAR = 129;
135
+ static readonly SEMI = 130;
136
+ static readonly NOT_MATCH = 131;
137
+ static readonly MATCH = 132;
138
+ static readonly PERCENT = 133;
139
+ static readonly DOUBLE_QMARK = 134;
140
+ static readonly QMARK = 135;
141
+ static readonly LITERAL_TIMESTAMP = 136;
142
+ static readonly LITERAL_HOUR = 137;
143
+ static readonly LITERAL_DAY = 138;
144
+ static readonly LITERAL_QUARTER = 139;
145
+ static readonly LITERAL_MONTH = 140;
146
+ static readonly LITERAL_WEEK = 141;
147
+ static readonly LITERAL_YEAR = 142;
148
+ static readonly IDENTIFIER = 143;
149
+ static readonly PERCENT_LITERAL = 144;
150
+ static readonly NUMERIC_LITERAL = 145;
151
+ static readonly INTEGER_LITERAL = 146;
152
+ static readonly BLOCK_COMMENT = 147;
153
+ static readonly COMMENT_TO_EOL = 148;
154
+ static readonly WHITE_SPACE = 149;
155
+ static readonly SQL_BEGIN = 150;
156
+ static readonly CLOSE_CODE = 151;
157
+ static readonly UNWATED_CHARS_TRAILING_NUMBERS = 152;
158
+ static readonly UNEXPECTED_CHAR = 153;
159
+ static readonly OPEN_CODE = 154;
160
+ static readonly SQL_END = 155;
160
161
  static readonly SQL_MODE = 1;
161
162
  static readonly channelNames: string[];
162
163
  static readonly modeNames: string[];