@malloydata/malloy 0.0.237-dev250222205057 → 0.0.237-dev250224203840
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 +3 -1
- package/dist/dialect/dialect.js +18 -0
- package/dist/dialect/standardsql/standardsql.d.ts +1 -0
- package/dist/dialect/standardsql/standardsql.js +1 -0
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +61 -60
- package/dist/lang/lib/Malloy/MalloyLexer.js +969 -937
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +116 -97
- package/dist/lang/lib/Malloy/MalloyParser.js +1947 -1819
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +24 -0
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +15 -0
- package/dist/lang/malloy-to-ast.d.ts +1 -0
- package/dist/lang/malloy-to-ast.js +9 -0
- package/dist/lang/parse-log.d.ts +1 -0
- package/dist/lang/test/expressions.spec.js +11 -11
- package/dist/lang/test/literals.spec.js +14 -2
- package/dist/lang/test/parse-expects.js +1 -1
- package/dist/model/malloy_query.js +3 -3
- package/package.json +1 -1
|
@@ -112,66 +112,67 @@ export declare class MalloyParser extends Parser {
|
|
|
112
112
|
static readonly WITH = 101;
|
|
113
113
|
static readonly YEAR = 102;
|
|
114
114
|
static readonly UNGROUPED = 103;
|
|
115
|
-
static readonly
|
|
116
|
-
static readonly
|
|
117
|
-
static readonly
|
|
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
|
|
115
|
+
static readonly HACKY_REGEX = 104;
|
|
116
|
+
static readonly RAW_SQ = 105;
|
|
117
|
+
static readonly RAW_DQ = 106;
|
|
118
|
+
static readonly SQ_STRING = 107;
|
|
119
|
+
static readonly DQ_STRING = 108;
|
|
120
|
+
static readonly BQ_STRING = 109;
|
|
121
|
+
static readonly DOC_ANNOTATION = 110;
|
|
122
|
+
static readonly ANNOTATION = 111;
|
|
123
|
+
static readonly AMPER = 112;
|
|
124
|
+
static readonly ARROW = 113;
|
|
125
|
+
static readonly FAT_ARROW = 114;
|
|
126
|
+
static readonly OPAREN = 115;
|
|
127
|
+
static readonly CPAREN = 116;
|
|
128
|
+
static readonly OBRACK = 117;
|
|
129
|
+
static readonly CBRACK = 118;
|
|
130
|
+
static readonly OCURLY = 119;
|
|
131
|
+
static readonly CCURLY = 120;
|
|
132
|
+
static readonly DOUBLECOLON = 121;
|
|
133
|
+
static readonly TRIPLECOLON = 122;
|
|
134
|
+
static readonly EXCLAM = 123;
|
|
135
|
+
static readonly COLON = 124;
|
|
136
|
+
static readonly COMMA = 125;
|
|
137
|
+
static readonly DOT = 126;
|
|
138
|
+
static readonly LT = 127;
|
|
139
|
+
static readonly GT = 128;
|
|
140
|
+
static readonly EQ = 129;
|
|
141
|
+
static readonly NE = 130;
|
|
142
|
+
static readonly LTE = 131;
|
|
143
|
+
static readonly GTE = 132;
|
|
144
|
+
static readonly PLUS = 133;
|
|
145
|
+
static readonly MINUS = 134;
|
|
146
|
+
static readonly STAR = 135;
|
|
147
|
+
static readonly STARSTAR = 136;
|
|
148
|
+
static readonly SLASH = 137;
|
|
149
|
+
static readonly BAR = 138;
|
|
150
|
+
static readonly SEMI = 139;
|
|
151
|
+
static readonly NOT_MATCH = 140;
|
|
152
|
+
static readonly MATCH = 141;
|
|
153
|
+
static readonly PERCENT = 142;
|
|
154
|
+
static readonly DOUBLE_QMARK = 143;
|
|
155
|
+
static readonly QMARK = 144;
|
|
156
|
+
static readonly LITERAL_TIMESTAMP = 145;
|
|
157
|
+
static readonly LITERAL_HOUR = 146;
|
|
158
|
+
static readonly LITERAL_DAY = 147;
|
|
159
|
+
static readonly LITERAL_QUARTER = 148;
|
|
160
|
+
static readonly LITERAL_MONTH = 149;
|
|
161
|
+
static readonly LITERAL_WEEK = 150;
|
|
162
|
+
static readonly LITERAL_YEAR = 151;
|
|
163
|
+
static readonly IDENTIFIER = 152;
|
|
164
|
+
static readonly PERCENT_LITERAL = 153;
|
|
165
|
+
static readonly NUMERIC_LITERAL = 154;
|
|
166
|
+
static readonly INTEGER_LITERAL = 155;
|
|
167
|
+
static readonly BLOCK_COMMENT = 156;
|
|
168
|
+
static readonly COMMENT_TO_EOL = 157;
|
|
169
|
+
static readonly WHITE_SPACE = 158;
|
|
170
|
+
static readonly SQL_BEGIN = 159;
|
|
171
|
+
static readonly CLOSE_CODE = 160;
|
|
172
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 161;
|
|
173
|
+
static readonly UNEXPECTED_CHAR = 162;
|
|
174
|
+
static readonly OPEN_CODE = 163;
|
|
175
|
+
static readonly SQL_END = 164;
|
|
175
176
|
static readonly RULE_malloyDocument = 0;
|
|
176
177
|
static readonly RULE_malloyStatement = 1;
|
|
177
178
|
static readonly RULE_defineSourceStatement = 2;
|
|
@@ -286,43 +287,44 @@ export declare class MalloyParser extends Parser {
|
|
|
286
287
|
static readonly RULE_compareOp = 111;
|
|
287
288
|
static readonly RULE_string = 112;
|
|
288
289
|
static readonly RULE_shortString = 113;
|
|
289
|
-
static readonly
|
|
290
|
-
static readonly
|
|
291
|
-
static readonly
|
|
292
|
-
static readonly
|
|
293
|
-
static readonly
|
|
294
|
-
static readonly
|
|
295
|
-
static readonly
|
|
296
|
-
static readonly
|
|
297
|
-
static readonly
|
|
298
|
-
static readonly
|
|
299
|
-
static readonly
|
|
300
|
-
static readonly
|
|
301
|
-
static readonly
|
|
302
|
-
static readonly
|
|
303
|
-
static readonly
|
|
304
|
-
static readonly
|
|
305
|
-
static readonly
|
|
306
|
-
static readonly
|
|
307
|
-
static readonly
|
|
308
|
-
static readonly
|
|
309
|
-
static readonly
|
|
310
|
-
static readonly
|
|
311
|
-
static readonly
|
|
312
|
-
static readonly
|
|
313
|
-
static readonly
|
|
314
|
-
static readonly
|
|
315
|
-
static readonly
|
|
316
|
-
static readonly
|
|
317
|
-
static readonly
|
|
318
|
-
static readonly
|
|
319
|
-
static readonly
|
|
320
|
-
static readonly
|
|
321
|
-
static readonly
|
|
322
|
-
static readonly
|
|
323
|
-
static readonly
|
|
324
|
-
static readonly
|
|
325
|
-
static readonly
|
|
290
|
+
static readonly RULE_rawString = 114;
|
|
291
|
+
static readonly RULE_numericLiteral = 115;
|
|
292
|
+
static readonly RULE_literal = 116;
|
|
293
|
+
static readonly RULE_dateLiteral = 117;
|
|
294
|
+
static readonly RULE_tablePath = 118;
|
|
295
|
+
static readonly RULE_tableURI = 119;
|
|
296
|
+
static readonly RULE_id = 120;
|
|
297
|
+
static readonly RULE_timeframe = 121;
|
|
298
|
+
static readonly RULE_ungroup = 122;
|
|
299
|
+
static readonly RULE_malloyOrSQLType = 123;
|
|
300
|
+
static readonly RULE_fieldExpr = 124;
|
|
301
|
+
static readonly RULE_partialCompare = 125;
|
|
302
|
+
static readonly RULE_partialTest = 126;
|
|
303
|
+
static readonly RULE_partialAllowedFieldExpr = 127;
|
|
304
|
+
static readonly RULE_fieldExprList = 128;
|
|
305
|
+
static readonly RULE_pickStatement = 129;
|
|
306
|
+
static readonly RULE_pick = 130;
|
|
307
|
+
static readonly RULE_caseStatement = 131;
|
|
308
|
+
static readonly RULE_caseWhen = 132;
|
|
309
|
+
static readonly RULE_recordKey = 133;
|
|
310
|
+
static readonly RULE_recordElement = 134;
|
|
311
|
+
static readonly RULE_argumentList = 135;
|
|
312
|
+
static readonly RULE_fieldNameList = 136;
|
|
313
|
+
static readonly RULE_fieldCollection = 137;
|
|
314
|
+
static readonly RULE_collectionWildCard = 138;
|
|
315
|
+
static readonly RULE_starQualified = 139;
|
|
316
|
+
static readonly RULE_taggedRef = 140;
|
|
317
|
+
static readonly RULE_refExpr = 141;
|
|
318
|
+
static readonly RULE_collectionMember = 142;
|
|
319
|
+
static readonly RULE_fieldPath = 143;
|
|
320
|
+
static readonly RULE_joinName = 144;
|
|
321
|
+
static readonly RULE_fieldName = 145;
|
|
322
|
+
static readonly RULE_sqlExploreNameRef = 146;
|
|
323
|
+
static readonly RULE_nameSQLBlock = 147;
|
|
324
|
+
static readonly RULE_connectionName = 148;
|
|
325
|
+
static readonly RULE_debugExpr = 149;
|
|
326
|
+
static readonly RULE_debugPartial = 150;
|
|
327
|
+
static readonly RULE_experimentalStatementForTesting = 151;
|
|
326
328
|
static readonly ruleNames: string[];
|
|
327
329
|
private static readonly _LITERAL_NAMES;
|
|
328
330
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -449,6 +451,7 @@ export declare class MalloyParser extends Parser {
|
|
|
449
451
|
compareOp(): CompareOpContext;
|
|
450
452
|
string(): StringContext;
|
|
451
453
|
shortString(): ShortStringContext;
|
|
454
|
+
rawString(): RawStringContext;
|
|
452
455
|
numericLiteral(): NumericLiteralContext;
|
|
453
456
|
literal(): LiteralContext;
|
|
454
457
|
dateLiteral(): DateLiteralContext;
|
|
@@ -1979,6 +1982,15 @@ export declare class ShortStringContext extends ParserRuleContext {
|
|
|
1979
1982
|
exitRule(listener: MalloyParserListener): void;
|
|
1980
1983
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1981
1984
|
}
|
|
1985
|
+
export declare class RawStringContext extends ParserRuleContext {
|
|
1986
|
+
RAW_SQ(): TerminalNode | undefined;
|
|
1987
|
+
RAW_DQ(): TerminalNode | undefined;
|
|
1988
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1989
|
+
get ruleIndex(): number;
|
|
1990
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1991
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1992
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1993
|
+
}
|
|
1982
1994
|
export declare class NumericLiteralContext extends ParserRuleContext {
|
|
1983
1995
|
NUMERIC_LITERAL(): TerminalNode | undefined;
|
|
1984
1996
|
INTEGER_LITERAL(): TerminalNode | undefined;
|
|
@@ -2000,6 +2012,13 @@ export declare class ExprStringContext extends LiteralContext {
|
|
|
2000
2012
|
exitRule(listener: MalloyParserListener): void;
|
|
2001
2013
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2002
2014
|
}
|
|
2015
|
+
export declare class Stub_rawStringContext extends LiteralContext {
|
|
2016
|
+
rawString(): RawStringContext;
|
|
2017
|
+
constructor(ctx: LiteralContext);
|
|
2018
|
+
enterRule(listener: MalloyParserListener): void;
|
|
2019
|
+
exitRule(listener: MalloyParserListener): void;
|
|
2020
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2021
|
+
}
|
|
2003
2022
|
export declare class ExprNumberContext extends LiteralContext {
|
|
2004
2023
|
numericLiteral(): NumericLiteralContext;
|
|
2005
2024
|
constructor(ctx: LiteralContext);
|