@malloydata/malloy 0.0.337 → 0.0.338
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/api/foundation/result.d.ts +4 -4
- package/dist/api/foundation/result.js +9 -9
- package/dist/api/foundation/writers.d.ts +1 -1
- package/dist/api/foundation/writers.js +9 -8
- package/dist/connection/registry.d.ts +1 -1
- package/dist/connection/types.d.ts +2 -2
- package/dist/dialect/dialect.d.ts +2 -1
- package/dist/dialect/dialect.js +3 -0
- package/dist/dialect/duckdb/duckdb.js +22 -1
- package/dist/dialect/mysql/mysql.d.ts +1 -0
- package/dist/dialect/mysql/mysql.js +1 -0
- package/dist/dialect/postgres/postgres.d.ts +1 -0
- package/dist/dialect/postgres/postgres.js +10 -0
- package/dist/dialect/standardsql/standardsql.js +21 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -2
- package/dist/lang/ast/expressions/expr-cast.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-cast.js +4 -2
- package/dist/lang/ast/expressions/expr-func.d.ts +3 -3
- package/dist/lang/ast/expressions/expr-func.js +7 -9
- package/dist/lang/ast/expressions/for-range.js +1 -1
- package/dist/lang/ast/source-elements/named-source.js +4 -2
- package/dist/lang/ast/time-utils.d.ts +2 -2
- package/dist/lang/ast/time-utils.js +4 -5
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +88 -45
- package/dist/lang/lib/Malloy/MalloyParser.js +2193 -1862
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +33 -0
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +21 -0
- package/dist/lang/malloy-to-ast.d.ts +4 -4
- package/dist/lang/malloy-to-ast.js +38 -22
- package/dist/model/malloy_types.d.ts +11 -8
- package/dist/model/malloy_types.js +23 -15
- package/dist/model/utils.d.ts +3 -5
- package/dist/model/utils.js +6 -10
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +5 -6
|
@@ -297,50 +297,53 @@ export declare class MalloyParser extends Parser {
|
|
|
297
297
|
static readonly RULE_sampleSpec = 112;
|
|
298
298
|
static readonly RULE_aggregate = 113;
|
|
299
299
|
static readonly RULE_malloyType = 114;
|
|
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
|
|
326
|
-
static readonly
|
|
327
|
-
static readonly
|
|
328
|
-
static readonly
|
|
329
|
-
static readonly
|
|
330
|
-
static readonly
|
|
331
|
-
static readonly
|
|
332
|
-
static readonly
|
|
333
|
-
static readonly
|
|
334
|
-
static readonly
|
|
335
|
-
static readonly
|
|
336
|
-
static readonly
|
|
337
|
-
static readonly
|
|
338
|
-
static readonly
|
|
339
|
-
static readonly
|
|
340
|
-
static readonly
|
|
341
|
-
static readonly
|
|
342
|
-
static readonly
|
|
343
|
-
static readonly
|
|
300
|
+
static readonly RULE_malloyBasicType = 115;
|
|
301
|
+
static readonly RULE_malloyRecordType = 116;
|
|
302
|
+
static readonly RULE_malloyRecordField = 117;
|
|
303
|
+
static readonly RULE_compareOp = 118;
|
|
304
|
+
static readonly RULE_string = 119;
|
|
305
|
+
static readonly RULE_shortString = 120;
|
|
306
|
+
static readonly RULE_rawString = 121;
|
|
307
|
+
static readonly RULE_numericLiteral = 122;
|
|
308
|
+
static readonly RULE_literal = 123;
|
|
309
|
+
static readonly RULE_dateLiteral = 124;
|
|
310
|
+
static readonly RULE_tablePath = 125;
|
|
311
|
+
static readonly RULE_tableURI = 126;
|
|
312
|
+
static readonly RULE_id = 127;
|
|
313
|
+
static readonly RULE_timeframe = 128;
|
|
314
|
+
static readonly RULE_ungroup = 129;
|
|
315
|
+
static readonly RULE_malloyOrSQLType = 130;
|
|
316
|
+
static readonly RULE_fieldExpr = 131;
|
|
317
|
+
static readonly RULE_partialCompare = 132;
|
|
318
|
+
static readonly RULE_partialTest = 133;
|
|
319
|
+
static readonly RULE_partialAllowedFieldExpr = 134;
|
|
320
|
+
static readonly RULE_fieldExprList = 135;
|
|
321
|
+
static readonly RULE_pickStatement = 136;
|
|
322
|
+
static readonly RULE_pick = 137;
|
|
323
|
+
static readonly RULE_caseStatement = 138;
|
|
324
|
+
static readonly RULE_caseWhen = 139;
|
|
325
|
+
static readonly RULE_recordKey = 140;
|
|
326
|
+
static readonly RULE_recordElement = 141;
|
|
327
|
+
static readonly RULE_argumentList = 142;
|
|
328
|
+
static readonly RULE_fieldNameList = 143;
|
|
329
|
+
static readonly RULE_fieldCollection = 144;
|
|
330
|
+
static readonly RULE_collectionWildCard = 145;
|
|
331
|
+
static readonly RULE_starQualified = 146;
|
|
332
|
+
static readonly RULE_taggedRef = 147;
|
|
333
|
+
static readonly RULE_refExpr = 148;
|
|
334
|
+
static readonly RULE_collectionMember = 149;
|
|
335
|
+
static readonly RULE_fieldPath = 150;
|
|
336
|
+
static readonly RULE_joinName = 151;
|
|
337
|
+
static readonly RULE_fieldName = 152;
|
|
338
|
+
static readonly RULE_sqlExploreNameRef = 153;
|
|
339
|
+
static readonly RULE_nameSQLBlock = 154;
|
|
340
|
+
static readonly RULE_connectionName = 155;
|
|
341
|
+
static readonly RULE_tripFilterString = 156;
|
|
342
|
+
static readonly RULE_tickFilterString = 157;
|
|
343
|
+
static readonly RULE_filterString = 158;
|
|
344
|
+
static readonly RULE_debugExpr = 159;
|
|
345
|
+
static readonly RULE_debugPartial = 160;
|
|
346
|
+
static readonly RULE_experimentalStatementForTesting = 161;
|
|
344
347
|
static readonly ruleNames: string[];
|
|
345
348
|
private static readonly _LITERAL_NAMES;
|
|
346
349
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -468,6 +471,10 @@ export declare class MalloyParser extends Parser {
|
|
|
468
471
|
sampleSpec(): SampleSpecContext;
|
|
469
472
|
aggregate(): AggregateContext;
|
|
470
473
|
malloyType(): MalloyTypeContext;
|
|
474
|
+
malloyType(_p: number): MalloyTypeContext;
|
|
475
|
+
malloyBasicType(): MalloyBasicTypeContext;
|
|
476
|
+
malloyRecordType(): MalloyRecordTypeContext;
|
|
477
|
+
malloyRecordField(): MalloyRecordFieldContext;
|
|
471
478
|
compareOp(): CompareOpContext;
|
|
472
479
|
string(): StringContext;
|
|
473
480
|
shortString(): ShortStringContext;
|
|
@@ -516,6 +523,7 @@ export declare class MalloyParser extends Parser {
|
|
|
516
523
|
sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
|
|
517
524
|
private sqExpr_sempred;
|
|
518
525
|
private segExpr_sempred;
|
|
526
|
+
private malloyType_sempred;
|
|
519
527
|
private fieldExpr_sempred;
|
|
520
528
|
private static readonly _serializedATNSegments;
|
|
521
529
|
private static readonly _serializedATNSegment0;
|
|
@@ -844,7 +852,7 @@ export declare class SourceParametersContext extends ParserRuleContext {
|
|
|
844
852
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
845
853
|
}
|
|
846
854
|
export declare class LegalParamTypeContext extends ParserRuleContext {
|
|
847
|
-
|
|
855
|
+
malloyBasicType(): MalloyBasicTypeContext;
|
|
848
856
|
FILTER(): TerminalNode | undefined;
|
|
849
857
|
LT(): TerminalNode | undefined;
|
|
850
858
|
GT(): TerminalNode | undefined;
|
|
@@ -1975,6 +1983,18 @@ export declare class AggregateContext extends ParserRuleContext {
|
|
|
1975
1983
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1976
1984
|
}
|
|
1977
1985
|
export declare class MalloyTypeContext extends ParserRuleContext {
|
|
1986
|
+
malloyBasicType(): MalloyBasicTypeContext | undefined;
|
|
1987
|
+
malloyRecordType(): MalloyRecordTypeContext | undefined;
|
|
1988
|
+
malloyType(): MalloyTypeContext | undefined;
|
|
1989
|
+
OBRACK(): TerminalNode | undefined;
|
|
1990
|
+
CBRACK(): TerminalNode | undefined;
|
|
1991
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1992
|
+
get ruleIndex(): number;
|
|
1993
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1994
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1995
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1996
|
+
}
|
|
1997
|
+
export declare class MalloyBasicTypeContext extends ParserRuleContext {
|
|
1978
1998
|
STRING(): TerminalNode | undefined;
|
|
1979
1999
|
NUMBER(): TerminalNode | undefined;
|
|
1980
2000
|
BOOLEAN(): TerminalNode | undefined;
|
|
@@ -1987,6 +2007,29 @@ export declare class MalloyTypeContext extends ParserRuleContext {
|
|
|
1987
2007
|
exitRule(listener: MalloyParserListener): void;
|
|
1988
2008
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1989
2009
|
}
|
|
2010
|
+
export declare class MalloyRecordTypeContext extends ParserRuleContext {
|
|
2011
|
+
OCURLY(): TerminalNode;
|
|
2012
|
+
malloyRecordField(): MalloyRecordFieldContext[];
|
|
2013
|
+
malloyRecordField(i: number): MalloyRecordFieldContext;
|
|
2014
|
+
CCURLY(): TerminalNode;
|
|
2015
|
+
COMMA(): TerminalNode[];
|
|
2016
|
+
COMMA(i: number): TerminalNode;
|
|
2017
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
2018
|
+
get ruleIndex(): number;
|
|
2019
|
+
enterRule(listener: MalloyParserListener): void;
|
|
2020
|
+
exitRule(listener: MalloyParserListener): void;
|
|
2021
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2022
|
+
}
|
|
2023
|
+
export declare class MalloyRecordFieldContext extends ParserRuleContext {
|
|
2024
|
+
id(): IdContext;
|
|
2025
|
+
DOUBLECOLON(): TerminalNode;
|
|
2026
|
+
malloyType(): MalloyTypeContext;
|
|
2027
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
2028
|
+
get ruleIndex(): number;
|
|
2029
|
+
enterRule(listener: MalloyParserListener): void;
|
|
2030
|
+
exitRule(listener: MalloyParserListener): void;
|
|
2031
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2032
|
+
}
|
|
1990
2033
|
export declare class CompareOpContext extends ParserRuleContext {
|
|
1991
2034
|
MATCH(): TerminalNode | undefined;
|
|
1992
2035
|
NOT_MATCH(): TerminalNode | undefined;
|