@malloydata/malloy 0.0.36-dev230524224445 → 0.0.36-dev230525034638
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/lang/ast/expressions/expr-coalesce.d.ts +11 -0
- package/dist/lang/ast/expressions/expr-coalesce.js +59 -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 +71 -70
- package/dist/lang/lib/Malloy/MalloyLexer.js +1025 -1020
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +111 -86
- package/dist/lang/lib/Malloy/MalloyParser.js +767 -638
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +62 -23
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +38 -14
- package/dist/lang/malloy-to-ast.d.ts +5 -2
- package/dist/lang/malloy-to-ast.js +19 -7
- package/dist/lang/test/parse.spec.js +1 -0
- package/package.json +1 -1
|
@@ -77,76 +77,77 @@ export declare class MalloyParser extends Parser {
|
|
|
77
77
|
static readonly ON = 66;
|
|
78
78
|
static readonly OR = 67;
|
|
79
79
|
static readonly PICK = 68;
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
91
|
-
static readonly
|
|
92
|
-
static readonly
|
|
93
|
-
static readonly
|
|
94
|
-
static readonly
|
|
95
|
-
static readonly
|
|
96
|
-
static readonly
|
|
97
|
-
static readonly
|
|
98
|
-
static readonly
|
|
99
|
-
static readonly
|
|
100
|
-
static readonly
|
|
101
|
-
static readonly
|
|
102
|
-
static readonly
|
|
103
|
-
static readonly
|
|
104
|
-
static readonly
|
|
105
|
-
static readonly
|
|
106
|
-
static readonly
|
|
107
|
-
static readonly
|
|
108
|
-
static readonly
|
|
109
|
-
static readonly
|
|
110
|
-
static readonly
|
|
111
|
-
static readonly
|
|
112
|
-
static readonly
|
|
113
|
-
static readonly
|
|
114
|
-
static readonly
|
|
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
|
|
80
|
+
static readonly QUARTER = 69;
|
|
81
|
+
static readonly SECOND = 70;
|
|
82
|
+
static readonly STRING = 71;
|
|
83
|
+
static readonly SUM = 72;
|
|
84
|
+
static readonly TABLE = 73;
|
|
85
|
+
static readonly THEN = 74;
|
|
86
|
+
static readonly THIS = 75;
|
|
87
|
+
static readonly TIMESTAMP = 76;
|
|
88
|
+
static readonly TO = 77;
|
|
89
|
+
static readonly TRUE = 78;
|
|
90
|
+
static readonly TURTLE = 79;
|
|
91
|
+
static readonly WEEK = 80;
|
|
92
|
+
static readonly WHEN = 81;
|
|
93
|
+
static readonly WITH = 82;
|
|
94
|
+
static readonly YEAR = 83;
|
|
95
|
+
static readonly UNGROUPED = 84;
|
|
96
|
+
static readonly STRING_ESCAPE = 85;
|
|
97
|
+
static readonly HACKY_REGEX = 86;
|
|
98
|
+
static readonly STRING_LITERAL = 87;
|
|
99
|
+
static readonly AMPER = 88;
|
|
100
|
+
static readonly ARROW = 89;
|
|
101
|
+
static readonly FAT_ARROW = 90;
|
|
102
|
+
static readonly OPAREN = 91;
|
|
103
|
+
static readonly CPAREN = 92;
|
|
104
|
+
static readonly OBRACK = 93;
|
|
105
|
+
static readonly CBRACK = 94;
|
|
106
|
+
static readonly OCURLY = 95;
|
|
107
|
+
static readonly CCURLY = 96;
|
|
108
|
+
static readonly DOUBLECOLON = 97;
|
|
109
|
+
static readonly COLON = 98;
|
|
110
|
+
static readonly COMMA = 99;
|
|
111
|
+
static readonly DOT = 100;
|
|
112
|
+
static readonly LT = 101;
|
|
113
|
+
static readonly GT = 102;
|
|
114
|
+
static readonly EQ = 103;
|
|
115
|
+
static readonly NE = 104;
|
|
116
|
+
static readonly LTE = 105;
|
|
117
|
+
static readonly GTE = 106;
|
|
118
|
+
static readonly PLUS = 107;
|
|
119
|
+
static readonly MINUS = 108;
|
|
120
|
+
static readonly STAR = 109;
|
|
121
|
+
static readonly STARSTAR = 110;
|
|
122
|
+
static readonly SLASH = 111;
|
|
123
|
+
static readonly BAR = 112;
|
|
124
|
+
static readonly SEMI = 113;
|
|
125
|
+
static readonly NOT_MATCH = 114;
|
|
126
|
+
static readonly MATCH = 115;
|
|
127
|
+
static readonly PERCENT = 116;
|
|
128
|
+
static readonly DOUBLE_QMARK = 117;
|
|
129
|
+
static readonly QMARK = 118;
|
|
130
|
+
static readonly LITERAL_TIMESTAMP = 119;
|
|
131
|
+
static readonly LITERAL_HOUR = 120;
|
|
132
|
+
static readonly LITERAL_DAY = 121;
|
|
133
|
+
static readonly LITERAL_QUARTER = 122;
|
|
134
|
+
static readonly LITERAL_MONTH = 123;
|
|
135
|
+
static readonly LITERAL_WEEK = 124;
|
|
136
|
+
static readonly LITERAL_YEAR = 125;
|
|
137
|
+
static readonly IDENTIFIER = 126;
|
|
138
|
+
static readonly PERCENT_LITERAL = 127;
|
|
139
|
+
static readonly INTEGER_LITERAL = 128;
|
|
140
|
+
static readonly NUMERIC_LITERAL = 129;
|
|
141
|
+
static readonly OBJECT_NAME_LITERAL = 130;
|
|
142
|
+
static readonly BLOCK_COMMENT = 131;
|
|
143
|
+
static readonly COMMENT_TO_EOL = 132;
|
|
144
|
+
static readonly WHITE_SPACE = 133;
|
|
145
|
+
static readonly SQL_BEGIN = 134;
|
|
146
|
+
static readonly CLOSE_CODE = 135;
|
|
147
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 136;
|
|
148
|
+
static readonly UNEXPECTED_CHAR = 137;
|
|
149
|
+
static readonly OPEN_CODE = 138;
|
|
150
|
+
static readonly SQL_END = 139;
|
|
150
151
|
static readonly RULE_malloyDocument = 0;
|
|
151
152
|
static readonly RULE_malloyStatement = 1;
|
|
152
153
|
static readonly RULE_defineSourceStatement = 2;
|
|
@@ -1557,14 +1558,6 @@ export declare class ExprLiteralContext extends FieldExprContext {
|
|
|
1557
1558
|
exitRule(listener: MalloyParserListener): void;
|
|
1558
1559
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1559
1560
|
}
|
|
1560
|
-
export declare class ExprMinusContext extends FieldExprContext {
|
|
1561
|
-
MINUS(): TerminalNode;
|
|
1562
|
-
fieldExpr(): FieldExprContext;
|
|
1563
|
-
constructor(ctx: FieldExprContext);
|
|
1564
|
-
enterRule(listener: MalloyParserListener): void;
|
|
1565
|
-
exitRule(listener: MalloyParserListener): void;
|
|
1566
|
-
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1567
|
-
}
|
|
1568
1561
|
export declare class ExprDurationContext extends FieldExprContext {
|
|
1569
1562
|
fieldExpr(): FieldExprContext;
|
|
1570
1563
|
timeframe(): TimeframeContext;
|
|
@@ -1591,6 +1584,14 @@ export declare class ExprSafeCastContext extends FieldExprContext {
|
|
|
1591
1584
|
exitRule(listener: MalloyParserListener): void;
|
|
1592
1585
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1593
1586
|
}
|
|
1587
|
+
export declare class ExprMinusContext extends FieldExprContext {
|
|
1588
|
+
MINUS(): TerminalNode;
|
|
1589
|
+
fieldExpr(): FieldExprContext;
|
|
1590
|
+
constructor(ctx: FieldExprContext);
|
|
1591
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1592
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1593
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1594
|
+
}
|
|
1594
1595
|
export declare class ExprMulDivContext extends FieldExprContext {
|
|
1595
1596
|
fieldExpr(): FieldExprContext[];
|
|
1596
1597
|
fieldExpr(i: number): FieldExprContext;
|
|
@@ -1633,11 +1634,19 @@ export declare class ExprForRangeContext extends FieldExprContext {
|
|
|
1633
1634
|
exitRule(listener: MalloyParserListener): void;
|
|
1634
1635
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1635
1636
|
}
|
|
1636
|
-
export declare class
|
|
1637
|
+
export declare class ExprAndTreeContext extends FieldExprContext {
|
|
1638
|
+
fieldExpr(): FieldExprContext;
|
|
1639
|
+
AMPER(): TerminalNode;
|
|
1640
|
+
partialAllowedFieldExpr(): PartialAllowedFieldExprContext;
|
|
1641
|
+
constructor(ctx: FieldExprContext);
|
|
1642
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1643
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1644
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1645
|
+
}
|
|
1646
|
+
export declare class ExprOrTreeContext extends FieldExprContext {
|
|
1637
1647
|
fieldExpr(): FieldExprContext;
|
|
1648
|
+
BAR(): TerminalNode;
|
|
1638
1649
|
partialAllowedFieldExpr(): PartialAllowedFieldExprContext;
|
|
1639
|
-
AMPER(): TerminalNode | undefined;
|
|
1640
|
-
BAR(): TerminalNode | undefined;
|
|
1641
1650
|
constructor(ctx: FieldExprContext);
|
|
1642
1651
|
enterRule(listener: MalloyParserListener): void;
|
|
1643
1652
|
exitRule(listener: MalloyParserListener): void;
|
|
@@ -1654,9 +1663,8 @@ export declare class ExprCompareContext extends FieldExprContext {
|
|
|
1654
1663
|
}
|
|
1655
1664
|
export declare class ExprApplyContext extends FieldExprContext {
|
|
1656
1665
|
fieldExpr(): FieldExprContext;
|
|
1666
|
+
QMARK(): TerminalNode;
|
|
1657
1667
|
partialAllowedFieldExpr(): PartialAllowedFieldExprContext;
|
|
1658
|
-
COLON(): TerminalNode | undefined;
|
|
1659
|
-
QMARK(): TerminalNode | undefined;
|
|
1660
1668
|
constructor(ctx: FieldExprContext);
|
|
1661
1669
|
enterRule(listener: MalloyParserListener): void;
|
|
1662
1670
|
exitRule(listener: MalloyParserListener): void;
|
|
@@ -1670,11 +1678,28 @@ export declare class ExprNotContext extends FieldExprContext {
|
|
|
1670
1678
|
exitRule(listener: MalloyParserListener): void;
|
|
1671
1679
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1672
1680
|
}
|
|
1673
|
-
export declare class
|
|
1681
|
+
export declare class ExprLogicalAndContext extends FieldExprContext {
|
|
1682
|
+
fieldExpr(): FieldExprContext[];
|
|
1683
|
+
fieldExpr(i: number): FieldExprContext;
|
|
1684
|
+
AND(): TerminalNode;
|
|
1685
|
+
constructor(ctx: FieldExprContext);
|
|
1686
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1687
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1688
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1689
|
+
}
|
|
1690
|
+
export declare class ExprLogicalOrContext extends FieldExprContext {
|
|
1691
|
+
fieldExpr(): FieldExprContext[];
|
|
1692
|
+
fieldExpr(i: number): FieldExprContext;
|
|
1693
|
+
OR(): TerminalNode;
|
|
1694
|
+
constructor(ctx: FieldExprContext);
|
|
1695
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1696
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1697
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1698
|
+
}
|
|
1699
|
+
export declare class ExprCoalesceContext extends FieldExprContext {
|
|
1674
1700
|
fieldExpr(): FieldExprContext[];
|
|
1675
1701
|
fieldExpr(i: number): FieldExprContext;
|
|
1676
|
-
|
|
1677
|
-
OR(): TerminalNode | undefined;
|
|
1702
|
+
DOUBLE_QMARK(): TerminalNode;
|
|
1678
1703
|
constructor(ctx: FieldExprContext);
|
|
1679
1704
|
enterRule(listener: MalloyParserListener): void;
|
|
1680
1705
|
exitRule(listener: MalloyParserListener): void;
|