@gooddata/maql-antlr4ts 0.2.1-ffbf9e5f.0 → 0.3.1-005bace2.0
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/README.md +10 -10
- package/dist/index.d.ts +89 -86
- package/dist/index.js +630 -618
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -35,17 +35,17 @@ const normalizedAst = normalizer.visit(ast);
|
|
|
35
35
|
|
|
36
36
|
> Requirements: [`yarn`](https://yarnpkg.com)
|
|
37
37
|
|
|
38
|
-
| command
|
|
39
|
-
|
|
40
|
-
| `yarn install`
|
|
41
|
-
| `yarn build`
|
|
42
|
-
| `yarn
|
|
43
|
-
| `yarn funcdef`
|
|
44
|
-
| `yarn compile`
|
|
38
|
+
| command | effect |
|
|
39
|
+
|----------------|-------------------------------------------------------------------|
|
|
40
|
+
| `yarn install` | install all dependencies |
|
|
41
|
+
| `yarn build` | generate source files, compile files, bundle files into a package |
|
|
42
|
+
| `yarn antlr4` | generate source files from MAQL grammar |
|
|
43
|
+
| `yarn funcdef` | generate source files from MAQL function definitions |
|
|
44
|
+
| `yarn compile` | compile TypeScript |
|
|
45
45
|
| `yarn rollup -c` | bundle files into a package |
|
|
46
|
-
| `yarn test`
|
|
47
|
-
| `yarn test-ci`
|
|
48
|
-
| `yarn fix`
|
|
46
|
+
| `yarn test` | run ESLint, Prettier, and all tests |
|
|
47
|
+
| `yarn test-ci` | run `yarn test` with CI options and junit.xml output file |
|
|
48
|
+
| `yarn fix` | automatically fix ESLint and Prettier errors |
|
|
49
49
|
|
|
50
50
|
## Linking the package to other modules
|
|
51
51
|
|
package/dist/index.d.ts
CHANGED
|
@@ -88,49 +88,50 @@ declare class MaqlLexer extends Lexer {
|
|
|
88
88
|
static readonly DAY = 72;
|
|
89
89
|
static readonly DAYOFWEEK = 73;
|
|
90
90
|
static readonly DAYOFMONTH = 74;
|
|
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
|
|
91
|
+
static readonly DAYOFQUARTER = 75;
|
|
92
|
+
static readonly DAYOFYEAR = 76;
|
|
93
|
+
static readonly HOUR = 77;
|
|
94
|
+
static readonly HOUROFDAY = 78;
|
|
95
|
+
static readonly MINUTE = 79;
|
|
96
|
+
static readonly MINUTEOFHOUR = 80;
|
|
97
|
+
static readonly MONTH = 81;
|
|
98
|
+
static readonly MONTHOFYEAR = 82;
|
|
99
|
+
static readonly QUARTER = 83;
|
|
100
|
+
static readonly QUARTEROFYEAR = 84;
|
|
101
|
+
static readonly YEAR = 85;
|
|
102
|
+
static readonly WEEK = 86;
|
|
103
|
+
static readonly WEEKOFYEAR = 87;
|
|
104
|
+
static readonly WS = 88;
|
|
105
|
+
static readonly Comment = 89;
|
|
106
|
+
static readonly UnterminatedString = 90;
|
|
107
|
+
static readonly String = 91;
|
|
108
|
+
static readonly LBRACE = 92;
|
|
109
|
+
static readonly RBRACE = 93;
|
|
110
|
+
static readonly RELOP = 94;
|
|
111
|
+
static readonly COMMA = 95;
|
|
112
|
+
static readonly SEMICOLON = 96;
|
|
113
|
+
static readonly LPAREN = 97;
|
|
114
|
+
static readonly RPAREN = 98;
|
|
115
|
+
static readonly MINUS = 99;
|
|
116
|
+
static readonly PERCENT = 100;
|
|
117
|
+
static readonly PLUS = 101;
|
|
118
|
+
static readonly MUL = 102;
|
|
119
|
+
static readonly DIV = 103;
|
|
120
|
+
static readonly ZERO = 104;
|
|
121
|
+
static readonly Natural = 105;
|
|
122
|
+
static readonly Real = 106;
|
|
123
|
+
static readonly Identifier = 107;
|
|
124
|
+
static readonly ERROR_CHARACTER = 108;
|
|
125
|
+
static readonly FACT = 109;
|
|
126
|
+
static readonly ATTRIBUTE = 110;
|
|
127
|
+
static readonly METRIC_TYPE = 111;
|
|
128
|
+
static readonly LABEL = 112;
|
|
129
|
+
static readonly LOCAL = 113;
|
|
130
|
+
static readonly PROMPT = 114;
|
|
131
|
+
static readonly DATASET = 115;
|
|
132
|
+
static readonly UNKNOWN_TYPE = 116;
|
|
133
|
+
static readonly SEP = 117;
|
|
134
|
+
static readonly ID = 118;
|
|
134
135
|
static readonly OBJECT_TYPE = 1;
|
|
135
136
|
static readonly OBJECT_ID = 2;
|
|
136
137
|
static readonly channelNames: string[];
|
|
@@ -2023,49 +2024,50 @@ declare class MaqlParser extends Parser {
|
|
|
2023
2024
|
static readonly DAY = 72;
|
|
2024
2025
|
static readonly DAYOFWEEK = 73;
|
|
2025
2026
|
static readonly DAYOFMONTH = 74;
|
|
2026
|
-
static readonly
|
|
2027
|
-
static readonly
|
|
2028
|
-
static readonly
|
|
2029
|
-
static readonly
|
|
2030
|
-
static readonly
|
|
2031
|
-
static readonly
|
|
2032
|
-
static readonly
|
|
2033
|
-
static readonly
|
|
2034
|
-
static readonly
|
|
2035
|
-
static readonly
|
|
2036
|
-
static readonly
|
|
2037
|
-
static readonly
|
|
2038
|
-
static readonly
|
|
2039
|
-
static readonly
|
|
2040
|
-
static readonly
|
|
2041
|
-
static readonly
|
|
2042
|
-
static readonly
|
|
2043
|
-
static readonly
|
|
2044
|
-
static readonly
|
|
2045
|
-
static readonly
|
|
2046
|
-
static readonly
|
|
2047
|
-
static readonly
|
|
2048
|
-
static readonly
|
|
2049
|
-
static readonly
|
|
2050
|
-
static readonly
|
|
2051
|
-
static readonly
|
|
2052
|
-
static readonly
|
|
2053
|
-
static readonly
|
|
2054
|
-
static readonly
|
|
2055
|
-
static readonly
|
|
2056
|
-
static readonly
|
|
2057
|
-
static readonly
|
|
2058
|
-
static readonly
|
|
2059
|
-
static readonly
|
|
2060
|
-
static readonly
|
|
2061
|
-
static readonly
|
|
2062
|
-
static readonly
|
|
2063
|
-
static readonly
|
|
2064
|
-
static readonly
|
|
2065
|
-
static readonly
|
|
2066
|
-
static readonly
|
|
2067
|
-
static readonly
|
|
2068
|
-
static readonly
|
|
2027
|
+
static readonly DAYOFQUARTER = 75;
|
|
2028
|
+
static readonly DAYOFYEAR = 76;
|
|
2029
|
+
static readonly HOUR = 77;
|
|
2030
|
+
static readonly HOUROFDAY = 78;
|
|
2031
|
+
static readonly MINUTE = 79;
|
|
2032
|
+
static readonly MINUTEOFHOUR = 80;
|
|
2033
|
+
static readonly MONTH = 81;
|
|
2034
|
+
static readonly MONTHOFYEAR = 82;
|
|
2035
|
+
static readonly QUARTER = 83;
|
|
2036
|
+
static readonly QUARTEROFYEAR = 84;
|
|
2037
|
+
static readonly YEAR = 85;
|
|
2038
|
+
static readonly WEEK = 86;
|
|
2039
|
+
static readonly WEEKOFYEAR = 87;
|
|
2040
|
+
static readonly WS = 88;
|
|
2041
|
+
static readonly Comment = 89;
|
|
2042
|
+
static readonly UnterminatedString = 90;
|
|
2043
|
+
static readonly String = 91;
|
|
2044
|
+
static readonly LBRACE = 92;
|
|
2045
|
+
static readonly RBRACE = 93;
|
|
2046
|
+
static readonly RELOP = 94;
|
|
2047
|
+
static readonly COMMA = 95;
|
|
2048
|
+
static readonly SEMICOLON = 96;
|
|
2049
|
+
static readonly LPAREN = 97;
|
|
2050
|
+
static readonly RPAREN = 98;
|
|
2051
|
+
static readonly MINUS = 99;
|
|
2052
|
+
static readonly PERCENT = 100;
|
|
2053
|
+
static readonly PLUS = 101;
|
|
2054
|
+
static readonly MUL = 102;
|
|
2055
|
+
static readonly DIV = 103;
|
|
2056
|
+
static readonly ZERO = 104;
|
|
2057
|
+
static readonly Natural = 105;
|
|
2058
|
+
static readonly Real = 106;
|
|
2059
|
+
static readonly Identifier = 107;
|
|
2060
|
+
static readonly ERROR_CHARACTER = 108;
|
|
2061
|
+
static readonly FACT = 109;
|
|
2062
|
+
static readonly ATTRIBUTE = 110;
|
|
2063
|
+
static readonly METRIC_TYPE = 111;
|
|
2064
|
+
static readonly LABEL = 112;
|
|
2065
|
+
static readonly LOCAL = 113;
|
|
2066
|
+
static readonly PROMPT = 114;
|
|
2067
|
+
static readonly DATASET = 115;
|
|
2068
|
+
static readonly UNKNOWN_TYPE = 116;
|
|
2069
|
+
static readonly SEP = 117;
|
|
2070
|
+
static readonly ID = 118;
|
|
2069
2071
|
static readonly RULE_maql = 0;
|
|
2070
2072
|
static readonly RULE_maqlExpression = 1;
|
|
2071
2073
|
static readonly RULE_selectExpression = 2;
|
|
@@ -3262,6 +3264,7 @@ declare class GranularityContext extends ParserRuleContext {
|
|
|
3262
3264
|
DAY(): TerminalNode | undefined;
|
|
3263
3265
|
DAYOFWEEK(): TerminalNode | undefined;
|
|
3264
3266
|
DAYOFMONTH(): TerminalNode | undefined;
|
|
3267
|
+
DAYOFQUARTER(): TerminalNode | undefined;
|
|
3265
3268
|
DAYOFYEAR(): TerminalNode | undefined;
|
|
3266
3269
|
HOUR(): TerminalNode | undefined;
|
|
3267
3270
|
HOUROFDAY(): TerminalNode | undefined;
|