@malloydata/malloy 0.0.242-dev250313002313 → 0.0.242-dev250313045635
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.
- package/dist/dialect/dialect.d.ts +7 -3
- package/dist/dialect/dialect.js +25 -12
- package/dist/lang/ast/expressions/expr-filter-expr.d.ts +11 -0
- package/dist/lang/ast/expressions/expr-filter-expr.js +61 -0
- package/dist/lang/ast/index.d.ts +1 -0
- package/dist/lang/ast/index.js +1 -0
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +64 -58
- package/dist/lang/lib/Malloy/MalloyLexer.js +1216 -1158
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +109 -61
- package/dist/lang/lib/Malloy/MalloyParser.js +2059 -1734
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +46 -0
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +29 -0
- package/dist/lang/malloy-to-ast.d.ts +2 -0
- package/dist/lang/malloy-to-ast.js +19 -1
- package/dist/lang/parse-log.d.ts +2 -0
- package/dist/lang/test/expr-to-str.d.ts +9 -0
- package/dist/lang/test/expr-to-str.js +124 -0
- package/dist/lang/test/parse-expects.js +2 -91
- package/dist/model/filter_compilers.d.ts +5 -0
- package/dist/model/filter_compilers.js +160 -0
- package/dist/model/malloy_query.js +12 -4
- package/dist/model/malloy_types.d.ts +12 -2
- package/dist/model/malloy_types.js +6 -2
- package/package.json +4 -3
|
@@ -115,64 +115,70 @@ export declare class MalloyParser extends Parser {
|
|
|
115
115
|
static readonly HACKY_REGEX = 104;
|
|
116
116
|
static readonly RAW_SQ = 105;
|
|
117
117
|
static readonly RAW_DQ = 106;
|
|
118
|
-
static readonly
|
|
119
|
-
static readonly
|
|
120
|
-
static readonly
|
|
121
|
-
static readonly
|
|
122
|
-
static readonly
|
|
123
|
-
static readonly
|
|
124
|
-
static readonly
|
|
125
|
-
static readonly
|
|
126
|
-
static readonly
|
|
127
|
-
static readonly
|
|
128
|
-
static readonly
|
|
129
|
-
static readonly
|
|
130
|
-
static readonly
|
|
131
|
-
static readonly
|
|
132
|
-
static readonly
|
|
133
|
-
static readonly
|
|
134
|
-
static readonly
|
|
135
|
-
static readonly
|
|
136
|
-
static readonly
|
|
137
|
-
static readonly
|
|
138
|
-
static readonly
|
|
139
|
-
static readonly
|
|
140
|
-
static readonly
|
|
141
|
-
static readonly
|
|
142
|
-
static readonly
|
|
143
|
-
static readonly
|
|
144
|
-
static readonly
|
|
145
|
-
static readonly
|
|
146
|
-
static readonly
|
|
147
|
-
static readonly
|
|
148
|
-
static readonly
|
|
149
|
-
static readonly
|
|
150
|
-
static readonly
|
|
151
|
-
static readonly
|
|
152
|
-
static readonly
|
|
153
|
-
static readonly
|
|
154
|
-
static readonly
|
|
155
|
-
static readonly
|
|
156
|
-
static readonly
|
|
157
|
-
static readonly
|
|
158
|
-
static readonly
|
|
159
|
-
static readonly
|
|
160
|
-
static readonly
|
|
161
|
-
static readonly
|
|
162
|
-
static readonly
|
|
163
|
-
static readonly
|
|
164
|
-
static readonly
|
|
165
|
-
static readonly
|
|
166
|
-
static readonly
|
|
167
|
-
static readonly
|
|
168
|
-
static readonly
|
|
169
|
-
static readonly
|
|
170
|
-
static readonly
|
|
171
|
-
static readonly
|
|
172
|
-
static readonly
|
|
173
|
-
static readonly
|
|
174
|
-
static readonly
|
|
175
|
-
static readonly
|
|
118
|
+
static readonly SQ3_FILTER = 107;
|
|
119
|
+
static readonly SQ_FILTER = 108;
|
|
120
|
+
static readonly DQ3_FILTER = 109;
|
|
121
|
+
static readonly DQ_FILTER = 110;
|
|
122
|
+
static readonly BQ3_FILTER = 111;
|
|
123
|
+
static readonly BQ_FILTER = 112;
|
|
124
|
+
static readonly SQ_STRING = 113;
|
|
125
|
+
static readonly DQ_STRING = 114;
|
|
126
|
+
static readonly BQ_STRING = 115;
|
|
127
|
+
static readonly DOC_ANNOTATION = 116;
|
|
128
|
+
static readonly ANNOTATION = 117;
|
|
129
|
+
static readonly AMPER = 118;
|
|
130
|
+
static readonly ARROW = 119;
|
|
131
|
+
static readonly FAT_ARROW = 120;
|
|
132
|
+
static readonly OPAREN = 121;
|
|
133
|
+
static readonly CPAREN = 122;
|
|
134
|
+
static readonly OBRACK = 123;
|
|
135
|
+
static readonly CBRACK = 124;
|
|
136
|
+
static readonly OCURLY = 125;
|
|
137
|
+
static readonly CCURLY = 126;
|
|
138
|
+
static readonly DOUBLECOLON = 127;
|
|
139
|
+
static readonly TRIPLECOLON = 128;
|
|
140
|
+
static readonly EXCLAM = 129;
|
|
141
|
+
static readonly COLON = 130;
|
|
142
|
+
static readonly COMMA = 131;
|
|
143
|
+
static readonly DOT = 132;
|
|
144
|
+
static readonly LT = 133;
|
|
145
|
+
static readonly GT = 134;
|
|
146
|
+
static readonly EQ = 135;
|
|
147
|
+
static readonly NE = 136;
|
|
148
|
+
static readonly LTE = 137;
|
|
149
|
+
static readonly GTE = 138;
|
|
150
|
+
static readonly PLUS = 139;
|
|
151
|
+
static readonly MINUS = 140;
|
|
152
|
+
static readonly STAR = 141;
|
|
153
|
+
static readonly STARSTAR = 142;
|
|
154
|
+
static readonly SLASH = 143;
|
|
155
|
+
static readonly BAR = 144;
|
|
156
|
+
static readonly SEMI = 145;
|
|
157
|
+
static readonly NOT_MATCH = 146;
|
|
158
|
+
static readonly MATCH = 147;
|
|
159
|
+
static readonly PERCENT = 148;
|
|
160
|
+
static readonly DOUBLE_QMARK = 149;
|
|
161
|
+
static readonly QMARK = 150;
|
|
162
|
+
static readonly LITERAL_TIMESTAMP = 151;
|
|
163
|
+
static readonly LITERAL_HOUR = 152;
|
|
164
|
+
static readonly LITERAL_DAY = 153;
|
|
165
|
+
static readonly LITERAL_QUARTER = 154;
|
|
166
|
+
static readonly LITERAL_MONTH = 155;
|
|
167
|
+
static readonly LITERAL_WEEK = 156;
|
|
168
|
+
static readonly LITERAL_YEAR = 157;
|
|
169
|
+
static readonly IDENTIFIER = 158;
|
|
170
|
+
static readonly PERCENT_LITERAL = 159;
|
|
171
|
+
static readonly NUMERIC_LITERAL = 160;
|
|
172
|
+
static readonly INTEGER_LITERAL = 161;
|
|
173
|
+
static readonly BLOCK_COMMENT = 162;
|
|
174
|
+
static readonly COMMENT_TO_EOL = 163;
|
|
175
|
+
static readonly WHITE_SPACE = 164;
|
|
176
|
+
static readonly SQL_BEGIN = 165;
|
|
177
|
+
static readonly CLOSE_CODE = 166;
|
|
178
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 167;
|
|
179
|
+
static readonly UNEXPECTED_CHAR = 168;
|
|
180
|
+
static readonly OPEN_CODE = 169;
|
|
181
|
+
static readonly SQL_END = 170;
|
|
176
182
|
static readonly RULE_malloyDocument = 0;
|
|
177
183
|
static readonly RULE_malloyStatement = 1;
|
|
178
184
|
static readonly RULE_defineSourceStatement = 2;
|
|
@@ -322,9 +328,12 @@ export declare class MalloyParser extends Parser {
|
|
|
322
328
|
static readonly RULE_sqlExploreNameRef = 146;
|
|
323
329
|
static readonly RULE_nameSQLBlock = 147;
|
|
324
330
|
static readonly RULE_connectionName = 148;
|
|
325
|
-
static readonly
|
|
326
|
-
static readonly
|
|
327
|
-
static readonly
|
|
331
|
+
static readonly RULE_tripFilterString = 149;
|
|
332
|
+
static readonly RULE_tickFilterString = 150;
|
|
333
|
+
static readonly RULE_filterString = 151;
|
|
334
|
+
static readonly RULE_debugExpr = 152;
|
|
335
|
+
static readonly RULE_debugPartial = 153;
|
|
336
|
+
static readonly RULE_experimentalStatementForTesting = 154;
|
|
328
337
|
static readonly ruleNames: string[];
|
|
329
338
|
private static readonly _LITERAL_NAMES;
|
|
330
339
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -487,6 +496,9 @@ export declare class MalloyParser extends Parser {
|
|
|
487
496
|
sqlExploreNameRef(): SqlExploreNameRefContext;
|
|
488
497
|
nameSQLBlock(): NameSQLBlockContext;
|
|
489
498
|
connectionName(): ConnectionNameContext;
|
|
499
|
+
tripFilterString(): TripFilterStringContext;
|
|
500
|
+
tickFilterString(): TickFilterStringContext;
|
|
501
|
+
filterString(): FilterStringContext;
|
|
490
502
|
debugExpr(): DebugExprContext;
|
|
491
503
|
debugPartial(): DebugPartialContext;
|
|
492
504
|
experimentalStatementForTesting(): ExperimentalStatementForTestingContext;
|
|
@@ -2055,6 +2067,13 @@ export declare class ExprRegexContext extends LiteralContext {
|
|
|
2055
2067
|
exitRule(listener: MalloyParserListener): void;
|
|
2056
2068
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2057
2069
|
}
|
|
2070
|
+
export declare class FilterString_stubContext extends LiteralContext {
|
|
2071
|
+
filterString(): FilterStringContext;
|
|
2072
|
+
constructor(ctx: LiteralContext);
|
|
2073
|
+
enterRule(listener: MalloyParserListener): void;
|
|
2074
|
+
exitRule(listener: MalloyParserListener): void;
|
|
2075
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2076
|
+
}
|
|
2058
2077
|
export declare class ExprNowContext extends LiteralContext {
|
|
2059
2078
|
NOW(): TerminalNode;
|
|
2060
2079
|
constructor(ctx: LiteralContext);
|
|
@@ -2771,6 +2790,35 @@ export declare class ConnectionNameContext extends ParserRuleContext {
|
|
|
2771
2790
|
exitRule(listener: MalloyParserListener): void;
|
|
2772
2791
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2773
2792
|
}
|
|
2793
|
+
export declare class TripFilterStringContext extends ParserRuleContext {
|
|
2794
|
+
SQ3_FILTER(): TerminalNode | undefined;
|
|
2795
|
+
BQ3_FILTER(): TerminalNode | undefined;
|
|
2796
|
+
DQ3_FILTER(): TerminalNode | undefined;
|
|
2797
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
2798
|
+
get ruleIndex(): number;
|
|
2799
|
+
enterRule(listener: MalloyParserListener): void;
|
|
2800
|
+
exitRule(listener: MalloyParserListener): void;
|
|
2801
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2802
|
+
}
|
|
2803
|
+
export declare class TickFilterStringContext extends ParserRuleContext {
|
|
2804
|
+
SQ_FILTER(): TerminalNode | undefined;
|
|
2805
|
+
BQ_FILTER(): TerminalNode | undefined;
|
|
2806
|
+
DQ_FILTER(): TerminalNode | undefined;
|
|
2807
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
2808
|
+
get ruleIndex(): number;
|
|
2809
|
+
enterRule(listener: MalloyParserListener): void;
|
|
2810
|
+
exitRule(listener: MalloyParserListener): void;
|
|
2811
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2812
|
+
}
|
|
2813
|
+
export declare class FilterStringContext extends ParserRuleContext {
|
|
2814
|
+
tripFilterString(): TripFilterStringContext | undefined;
|
|
2815
|
+
tickFilterString(): TickFilterStringContext | undefined;
|
|
2816
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
2817
|
+
get ruleIndex(): number;
|
|
2818
|
+
enterRule(listener: MalloyParserListener): void;
|
|
2819
|
+
exitRule(listener: MalloyParserListener): void;
|
|
2820
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2821
|
+
}
|
|
2774
2822
|
export declare class DebugExprContext extends ParserRuleContext {
|
|
2775
2823
|
fieldExpr(): FieldExprContext;
|
|
2776
2824
|
EOF(): TerminalNode;
|