@malloydata/malloy 0.0.51-dev230629171920 → 0.0.51-dev230705184641
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/index.d.ts +1 -1
- package/dist/lang/ast/elements/define-query.d.ts +3 -5
- package/dist/lang/ast/elements/define-query.js +1 -4
- package/dist/lang/ast/elements/define-source.d.ts +3 -5
- package/dist/lang/ast/elements/define-source.js +1 -4
- package/dist/lang/ast/elements/import-statement.d.ts +2 -1
- package/dist/lang/ast/elements/import-statement.js +12 -5
- package/dist/lang/ast/index.d.ts +1 -0
- package/dist/lang/ast/index.js +1 -0
- package/dist/lang/ast/query-elements/anonymous-query.d.ts +1 -2
- package/dist/lang/ast/query-elements/anonymous-query.js +0 -1
- package/dist/lang/ast/query-elements/run-query.d.ts +3 -4
- package/dist/lang/ast/sources/from-sql-source.d.ts +7 -0
- package/dist/lang/ast/sources/from-sql-source.js +68 -0
- package/dist/lang/ast/sources/sql-source.d.ts +15 -4
- package/dist/lang/ast/sources/sql-source.js +79 -27
- package/dist/lang/ast/sql-elements/sql-statement.d.ts +3 -1
- package/dist/lang/ast/sql-elements/sql-statement.js +21 -10
- package/dist/lang/ast/sql-elements/sql-string.d.ts +1 -0
- package/dist/lang/ast/sql-elements/sql-string.js +8 -0
- package/dist/lang/ast/types/malloy-element.d.ts +9 -6
- package/dist/lang/ast/types/malloy-element.js +42 -14
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +73 -72
- package/dist/lang/lib/Malloy/MalloyLexer.js +1078 -1072
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +86 -73
- package/dist/lang/lib/Malloy/MalloyParser.js +1198 -1135
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +13 -0
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +8 -0
- package/dist/lang/malloy-to-ast.d.ts +3 -2
- package/dist/lang/malloy-to-ast.js +17 -3
- package/dist/lang/parse-malloy.js +3 -3
- package/dist/lang/test/parse.spec.js +88 -1
- package/dist/lang/zone.d.ts +1 -1
- package/dist/malloy.js +1 -1
- package/dist/tags.d.ts +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ export declare class MalloyParser extends Parser {
|
|
|
37
37
|
static readonly SAMPLE = 26;
|
|
38
38
|
static readonly SELECT = 27;
|
|
39
39
|
static readonly SOURCE = 28;
|
|
40
|
-
static readonly
|
|
40
|
+
static readonly SQLC = 29;
|
|
41
41
|
static readonly TOP = 30;
|
|
42
42
|
static readonly WHERE = 31;
|
|
43
43
|
static readonly TIMEZONE = 32;
|
|
@@ -84,77 +84,78 @@ export declare class MalloyParser extends Parser {
|
|
|
84
84
|
static readonly SECOND = 73;
|
|
85
85
|
static readonly STRING = 74;
|
|
86
86
|
static readonly SUM = 75;
|
|
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
|
|
150
|
-
static readonly
|
|
151
|
-
static readonly
|
|
152
|
-
static readonly
|
|
153
|
-
static readonly
|
|
154
|
-
static readonly
|
|
155
|
-
static readonly
|
|
156
|
-
static readonly
|
|
157
|
-
static readonly
|
|
87
|
+
static readonly SQL = 76;
|
|
88
|
+
static readonly TABLE = 77;
|
|
89
|
+
static readonly THEN = 78;
|
|
90
|
+
static readonly THIS = 79;
|
|
91
|
+
static readonly TIMESTAMP = 80;
|
|
92
|
+
static readonly TO = 81;
|
|
93
|
+
static readonly TRUE = 82;
|
|
94
|
+
static readonly TURTLE = 83;
|
|
95
|
+
static readonly WEEK = 84;
|
|
96
|
+
static readonly WHEN = 85;
|
|
97
|
+
static readonly WITH = 86;
|
|
98
|
+
static readonly YEAR = 87;
|
|
99
|
+
static readonly UNGROUPED = 88;
|
|
100
|
+
static readonly STRING_ESCAPE = 89;
|
|
101
|
+
static readonly HACKY_REGEX = 90;
|
|
102
|
+
static readonly STRING_LITERAL = 91;
|
|
103
|
+
static readonly DOC_ANNOTATION = 92;
|
|
104
|
+
static readonly ANNOTATION = 93;
|
|
105
|
+
static readonly AMPER = 94;
|
|
106
|
+
static readonly ARROW = 95;
|
|
107
|
+
static readonly FAT_ARROW = 96;
|
|
108
|
+
static readonly OPAREN = 97;
|
|
109
|
+
static readonly CPAREN = 98;
|
|
110
|
+
static readonly OBRACK = 99;
|
|
111
|
+
static readonly CBRACK = 100;
|
|
112
|
+
static readonly OCURLY = 101;
|
|
113
|
+
static readonly CCURLY = 102;
|
|
114
|
+
static readonly DOUBLECOLON = 103;
|
|
115
|
+
static readonly TRIPLECOLON = 104;
|
|
116
|
+
static readonly EXCLAM = 105;
|
|
117
|
+
static readonly COLON = 106;
|
|
118
|
+
static readonly COMMA = 107;
|
|
119
|
+
static readonly DOT = 108;
|
|
120
|
+
static readonly LT = 109;
|
|
121
|
+
static readonly GT = 110;
|
|
122
|
+
static readonly EQ = 111;
|
|
123
|
+
static readonly NE = 112;
|
|
124
|
+
static readonly LTE = 113;
|
|
125
|
+
static readonly GTE = 114;
|
|
126
|
+
static readonly PLUS = 115;
|
|
127
|
+
static readonly MINUS = 116;
|
|
128
|
+
static readonly STAR = 117;
|
|
129
|
+
static readonly STARSTAR = 118;
|
|
130
|
+
static readonly SLASH = 119;
|
|
131
|
+
static readonly BAR = 120;
|
|
132
|
+
static readonly SEMI = 121;
|
|
133
|
+
static readonly NOT_MATCH = 122;
|
|
134
|
+
static readonly MATCH = 123;
|
|
135
|
+
static readonly PERCENT = 124;
|
|
136
|
+
static readonly DOUBLE_QMARK = 125;
|
|
137
|
+
static readonly QMARK = 126;
|
|
138
|
+
static readonly LITERAL_TIMESTAMP = 127;
|
|
139
|
+
static readonly LITERAL_HOUR = 128;
|
|
140
|
+
static readonly LITERAL_DAY = 129;
|
|
141
|
+
static readonly LITERAL_QUARTER = 130;
|
|
142
|
+
static readonly LITERAL_MONTH = 131;
|
|
143
|
+
static readonly LITERAL_WEEK = 132;
|
|
144
|
+
static readonly LITERAL_YEAR = 133;
|
|
145
|
+
static readonly IDENTIFIER = 134;
|
|
146
|
+
static readonly PERCENT_LITERAL = 135;
|
|
147
|
+
static readonly INTEGER_LITERAL = 136;
|
|
148
|
+
static readonly NUMERIC_LITERAL = 137;
|
|
149
|
+
static readonly OBJECT_NAME_LITERAL = 138;
|
|
150
|
+
static readonly BLOCK_COMMENT = 139;
|
|
151
|
+
static readonly COMMENT_TO_EOL = 140;
|
|
152
|
+
static readonly WHITE_SPACE = 141;
|
|
153
|
+
static readonly SQL_BEGIN = 142;
|
|
154
|
+
static readonly CLOSE_CODE = 143;
|
|
155
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 144;
|
|
156
|
+
static readonly UNEXPECTED_CHAR = 145;
|
|
157
|
+
static readonly OPEN_CODE = 146;
|
|
158
|
+
static readonly SQL_END = 147;
|
|
158
159
|
static readonly RULE_malloyDocument = 0;
|
|
159
160
|
static readonly RULE_malloyStatement = 1;
|
|
160
161
|
static readonly RULE_defineSourceStatement = 2;
|
|
@@ -531,7 +532,7 @@ export declare class RunStatementRefContext extends RunStatementContext {
|
|
|
531
532
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
532
533
|
}
|
|
533
534
|
export declare class DefineSQLStatementContext extends ParserRuleContext {
|
|
534
|
-
|
|
535
|
+
SQLC(): TerminalNode;
|
|
535
536
|
nameSQLBlock(): NameSQLBlockContext;
|
|
536
537
|
isDefine(): IsDefineContext;
|
|
537
538
|
sqlBlock(): SqlBlockContext;
|
|
@@ -862,6 +863,18 @@ export declare class SQLSourceNameContext extends ExploreSourceContext {
|
|
|
862
863
|
exitRule(listener: MalloyParserListener): void;
|
|
863
864
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
864
865
|
}
|
|
866
|
+
export declare class SQLSourceContext extends ExploreSourceContext {
|
|
867
|
+
connectionId(): ConnectionIdContext;
|
|
868
|
+
DOT(): TerminalNode;
|
|
869
|
+
SQL(): TerminalNode;
|
|
870
|
+
OPAREN(): TerminalNode;
|
|
871
|
+
sqlString(): SqlStringContext;
|
|
872
|
+
CPAREN(): TerminalNode;
|
|
873
|
+
constructor(ctx: ExploreSourceContext);
|
|
874
|
+
enterRule(listener: MalloyParserListener): void;
|
|
875
|
+
exitRule(listener: MalloyParserListener): void;
|
|
876
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
877
|
+
}
|
|
865
878
|
export declare class SourceNameDefContext extends ParserRuleContext {
|
|
866
879
|
id(): IdContext;
|
|
867
880
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|