@malloydata/malloy 0.0.24-dev230302224355 → 0.0.24-dev230305212748
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/for-range.d.ts +1 -5
- package/dist/lang/ast/expressions/for-range.js +6 -11
- package/dist/lang/ast/expressions/range.d.ts +1 -1
- package/dist/lang/ast/expressions/range.js +1 -0
- package/dist/lang/ast/expressions/time-literal.d.ts +77 -0
- package/dist/lang/ast/expressions/time-literal.js +316 -0
- package/dist/lang/ast/index.d.ts +1 -1
- package/dist/lang/ast/index.js +1 -1
- package/dist/lang/ast/time-utils.d.ts +1 -3
- package/dist/lang/ast/time-utils.js +1 -12
- package/dist/lang/ast/types/expr-result.d.ts +3 -0
- package/dist/lang/ast/types/expr-value.d.ts +2 -2
- package/dist/lang/ast/types/granular-result.js +3 -3
- package/dist/lang/ast/types/time-result.d.ts +2 -2
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +20 -19
- package/dist/lang/lib/Malloy/MalloyLexer.js +983 -957
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +27 -19
- package/dist/lang/lib/Malloy/MalloyParser.js +574 -530
- 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 +6 -1
- package/dist/lang/malloy-to-ast.js +22 -14
- package/dist/lang/test/parse.spec.js +121 -18
- package/dist/model/malloy_types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/lang/ast/expressions/granular-literal.d.ts +0 -20
- package/dist/lang/ast/expressions/granular-literal.js +0 -148
|
@@ -127,25 +127,26 @@ export declare class MalloyParser extends Parser {
|
|
|
127
127
|
static readonly MATCH = 116;
|
|
128
128
|
static readonly PERCENT = 117;
|
|
129
129
|
static readonly LITERAL_TIMESTAMP = 118;
|
|
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
|
|
130
|
+
static readonly LITERAL_HOUR = 119;
|
|
131
|
+
static readonly LITERAL_DAY = 120;
|
|
132
|
+
static readonly LITERAL_QUARTER = 121;
|
|
133
|
+
static readonly LITERAL_MONTH = 122;
|
|
134
|
+
static readonly LITERAL_WEEK = 123;
|
|
135
|
+
static readonly LITERAL_YEAR = 124;
|
|
136
|
+
static readonly IDENTIFIER = 125;
|
|
137
|
+
static readonly PERCENT_LITERAL = 126;
|
|
138
|
+
static readonly INTEGER_LITERAL = 127;
|
|
139
|
+
static readonly NUMERIC_LITERAL = 128;
|
|
140
|
+
static readonly OBJECT_NAME_LITERAL = 129;
|
|
141
|
+
static readonly BLOCK_COMMENT = 130;
|
|
142
|
+
static readonly COMMENT_TO_EOL = 131;
|
|
143
|
+
static readonly WHITE_SPACE = 132;
|
|
144
|
+
static readonly SQL_BEGIN = 133;
|
|
145
|
+
static readonly CLOSE_CODE = 134;
|
|
146
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 135;
|
|
147
|
+
static readonly UNEXPECTED_CHAR = 136;
|
|
148
|
+
static readonly OPEN_CODE = 137;
|
|
149
|
+
static readonly SQL_END = 138;
|
|
149
150
|
static readonly RULE_malloyDocument = 0;
|
|
150
151
|
static readonly RULE_malloyStatement = 1;
|
|
151
152
|
static readonly RULE_defineSourceStatement = 2;
|
|
@@ -1425,6 +1426,13 @@ export declare class LiteralTimestampContext extends DateLiteralContext {
|
|
|
1425
1426
|
exitRule(listener: MalloyParserListener): void;
|
|
1426
1427
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1427
1428
|
}
|
|
1429
|
+
export declare class LiteralHourContext extends DateLiteralContext {
|
|
1430
|
+
LITERAL_HOUR(): TerminalNode;
|
|
1431
|
+
constructor(ctx: DateLiteralContext);
|
|
1432
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1433
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1434
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1435
|
+
}
|
|
1428
1436
|
export declare class LiteralDayContext extends DateLiteralContext {
|
|
1429
1437
|
LITERAL_DAY(): TerminalNode;
|
|
1430
1438
|
constructor(ctx: DateLiteralContext);
|