@malloydata/malloy 0.0.55 → 0.0.56-dev230707230009
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/lib/Malloy/MalloyParser.d.ts +43 -32
- package/dist/lang/lib/Malloy/MalloyParser.js +1363 -1276
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +11 -0
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +7 -0
- package/dist/lang/malloy-to-ast.d.ts +4 -5
- package/dist/lang/malloy-to-ast.js +78 -114
- package/dist/lang/parse-tree-walkers/find-external-references.js +26 -11
- package/dist/lang/parse-utils.d.ts +50 -0
- package/dist/lang/{string-parser.js → parse-utils.js} +85 -2
- package/dist/lang/test/strings.spec.js +79 -12
- package/package.json +1 -1
- package/dist/lang/string-parser.d.ts +0 -11
|
@@ -247,32 +247,33 @@ export declare class MalloyParser extends Parser {
|
|
|
247
247
|
static readonly RULE_aggregate = 88;
|
|
248
248
|
static readonly RULE_malloyType = 89;
|
|
249
249
|
static readonly RULE_compareOp = 90;
|
|
250
|
-
static readonly
|
|
251
|
-
static readonly
|
|
252
|
-
static readonly
|
|
253
|
-
static readonly
|
|
254
|
-
static readonly
|
|
255
|
-
static readonly
|
|
256
|
-
static readonly
|
|
257
|
-
static readonly
|
|
258
|
-
static readonly
|
|
259
|
-
static readonly
|
|
260
|
-
static readonly
|
|
261
|
-
static readonly
|
|
262
|
-
static readonly
|
|
263
|
-
static readonly
|
|
264
|
-
static readonly
|
|
265
|
-
static readonly
|
|
266
|
-
static readonly
|
|
267
|
-
static readonly
|
|
268
|
-
static readonly
|
|
269
|
-
static readonly
|
|
270
|
-
static readonly
|
|
271
|
-
static readonly
|
|
272
|
-
static readonly
|
|
273
|
-
static readonly
|
|
274
|
-
static readonly
|
|
275
|
-
static readonly
|
|
250
|
+
static readonly RULE_string = 91;
|
|
251
|
+
static readonly RULE_shortString = 92;
|
|
252
|
+
static readonly RULE_numericLiteral = 93;
|
|
253
|
+
static readonly RULE_literal = 94;
|
|
254
|
+
static readonly RULE_dateLiteral = 95;
|
|
255
|
+
static readonly RULE_tablePath = 96;
|
|
256
|
+
static readonly RULE_tableURI = 97;
|
|
257
|
+
static readonly RULE_id = 98;
|
|
258
|
+
static readonly RULE_timeframe = 99;
|
|
259
|
+
static readonly RULE_ungroup = 100;
|
|
260
|
+
static readonly RULE_fieldExpr = 101;
|
|
261
|
+
static readonly RULE_partialAllowedFieldExpr = 102;
|
|
262
|
+
static readonly RULE_pickStatement = 103;
|
|
263
|
+
static readonly RULE_pick = 104;
|
|
264
|
+
static readonly RULE_argumentList = 105;
|
|
265
|
+
static readonly RULE_fieldNameList = 106;
|
|
266
|
+
static readonly RULE_fieldCollection = 107;
|
|
267
|
+
static readonly RULE_collectionWildCard = 108;
|
|
268
|
+
static readonly RULE_taggedRef = 109;
|
|
269
|
+
static readonly RULE_collectionMember = 110;
|
|
270
|
+
static readonly RULE_fieldPath = 111;
|
|
271
|
+
static readonly RULE_joinName = 112;
|
|
272
|
+
static readonly RULE_fieldName = 113;
|
|
273
|
+
static readonly RULE_justExpr = 114;
|
|
274
|
+
static readonly RULE_sqlExploreNameRef = 115;
|
|
275
|
+
static readonly RULE_nameSQLBlock = 116;
|
|
276
|
+
static readonly RULE_connectionName = 117;
|
|
276
277
|
static readonly ruleNames: string[];
|
|
277
278
|
private static readonly _LITERAL_NAMES;
|
|
278
279
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -374,6 +375,7 @@ export declare class MalloyParser extends Parser {
|
|
|
374
375
|
aggregate(): AggregateContext;
|
|
375
376
|
malloyType(): MalloyTypeContext;
|
|
376
377
|
compareOp(): CompareOpContext;
|
|
378
|
+
string(): StringContext;
|
|
377
379
|
shortString(): ShortStringContext;
|
|
378
380
|
numericLiteral(): NumericLiteralContext;
|
|
379
381
|
literal(): LiteralContext;
|
|
@@ -587,7 +589,7 @@ export declare class ImportStatementContext extends ParserRuleContext {
|
|
|
587
589
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
588
590
|
}
|
|
589
591
|
export declare class ImportURLContext extends ParserRuleContext {
|
|
590
|
-
|
|
592
|
+
string(): StringContext;
|
|
591
593
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
592
594
|
get ruleIndex(): number;
|
|
593
595
|
enterRule(listener: MalloyParserListener): void;
|
|
@@ -1539,7 +1541,7 @@ export declare class SampleStatementContext extends ParserRuleContext {
|
|
|
1539
1541
|
}
|
|
1540
1542
|
export declare class TimezoneStatementContext extends ParserRuleContext {
|
|
1541
1543
|
TIMEZONE(): TerminalNode;
|
|
1542
|
-
|
|
1544
|
+
string(): StringContext;
|
|
1543
1545
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1544
1546
|
get ruleIndex(): number;
|
|
1545
1547
|
enterRule(listener: MalloyParserListener): void;
|
|
@@ -1604,6 +1606,15 @@ export declare class CompareOpContext extends ParserRuleContext {
|
|
|
1604
1606
|
exitRule(listener: MalloyParserListener): void;
|
|
1605
1607
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1606
1608
|
}
|
|
1609
|
+
export declare class StringContext extends ParserRuleContext {
|
|
1610
|
+
shortString(): ShortStringContext | undefined;
|
|
1611
|
+
sqlString(): SqlStringContext | undefined;
|
|
1612
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1613
|
+
get ruleIndex(): number;
|
|
1614
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1615
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1616
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1617
|
+
}
|
|
1607
1618
|
export declare class ShortStringContext extends ParserRuleContext {
|
|
1608
1619
|
SQ_STRING(): TerminalNode | undefined;
|
|
1609
1620
|
DQ_STRING(): TerminalNode | undefined;
|
|
@@ -1628,7 +1639,7 @@ export declare class LiteralContext extends ParserRuleContext {
|
|
|
1628
1639
|
copyFrom(ctx: LiteralContext): void;
|
|
1629
1640
|
}
|
|
1630
1641
|
export declare class ExprStringContext extends LiteralContext {
|
|
1631
|
-
|
|
1642
|
+
string(): StringContext;
|
|
1632
1643
|
constructor(ctx: LiteralContext);
|
|
1633
1644
|
enterRule(listener: MalloyParserListener): void;
|
|
1634
1645
|
exitRule(listener: MalloyParserListener): void;
|
|
@@ -1732,7 +1743,7 @@ export declare class LiteralYearContext extends DateLiteralContext {
|
|
|
1732
1743
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1733
1744
|
}
|
|
1734
1745
|
export declare class TablePathContext extends ParserRuleContext {
|
|
1735
|
-
|
|
1746
|
+
string(): StringContext;
|
|
1736
1747
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1737
1748
|
get ruleIndex(): number;
|
|
1738
1749
|
enterRule(listener: MalloyParserListener): void;
|
|
@@ -1740,7 +1751,7 @@ export declare class TablePathContext extends ParserRuleContext {
|
|
|
1740
1751
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1741
1752
|
}
|
|
1742
1753
|
export declare class TableURIContext extends ParserRuleContext {
|
|
1743
|
-
|
|
1754
|
+
string(): StringContext;
|
|
1744
1755
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1745
1756
|
get ruleIndex(): number;
|
|
1746
1757
|
enterRule(listener: MalloyParserListener): void;
|
|
@@ -2198,7 +2209,7 @@ export declare class NameSQLBlockContext extends ParserRuleContext {
|
|
|
2198
2209
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
2199
2210
|
}
|
|
2200
2211
|
export declare class ConnectionNameContext extends ParserRuleContext {
|
|
2201
|
-
|
|
2212
|
+
string(): StringContext;
|
|
2202
2213
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
2203
2214
|
get ruleIndex(): number;
|
|
2204
2215
|
enterRule(listener: MalloyParserListener): void;
|