@gooddata/maql-antlr4ts 0.3.1-0bb9b7c2.0 → 0.3.1-0cd6501b.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 +1 -28
- package/dist/index.d.ts +175 -78
- package/dist/index.js +1584 -1337
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -67,31 +67,4 @@ Use [yalc](https://github.com/wclr/yalc) to link the package to other repositori
|
|
|
67
67
|
|
|
68
68
|
## Publishing
|
|
69
69
|
|
|
70
|
-
The package
|
|
71
|
-
|
|
72
|
-
### Manual publishing
|
|
73
|
-
|
|
74
|
-
> Unless you have a good reason to do so (i.e. you cannot test a feature otherwise)
|
|
75
|
-
**do not** publish the package manually.
|
|
76
|
-
|
|
77
|
-
Create a GitLab access token with `api` permissions and store it
|
|
78
|
-
in the `NPM_TOKEN` environment variable.
|
|
79
|
-
|
|
80
|
-
`export NPM_TOKEN=<your acces token>`
|
|
81
|
-
|
|
82
|
-
Build and publish the package. You must first set a new version of the package. You must choose one that is not yet
|
|
83
|
-
taken
|
|
84
|
-
(or delete the existing package). You can use
|
|
85
|
-
`yarn bump` or `yarn version <new version>`.
|
|
86
|
-
|
|
87
|
-
Then you should build the package
|
|
88
|
-
|
|
89
|
-
`yarn build`
|
|
90
|
-
|
|
91
|
-
and publish.
|
|
92
|
-
|
|
93
|
-
`npm publish`
|
|
94
|
-
|
|
95
|
-
You should now be able to see the package in the GitLab project registry.
|
|
96
|
-
|
|
97
|
-
The id of the project is set to `16539767`
|
|
70
|
+
The package can be published by triggering the workflow https://github.com/gooddata/gdc-nas/actions/workflows/publish_maql_antlr4ts_npm.yml manually.
|
package/dist/index.d.ts
CHANGED
|
@@ -101,37 +101,41 @@ declare class MaqlLexer extends Lexer {
|
|
|
101
101
|
static readonly YEAR = 85;
|
|
102
102
|
static readonly WEEK = 86;
|
|
103
103
|
static readonly WEEKOFYEAR = 87;
|
|
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
|
|
104
|
+
static readonly FISCALMONTH = 88;
|
|
105
|
+
static readonly FISCALQUARTER = 89;
|
|
106
|
+
static readonly FISCALYEAR = 90;
|
|
107
|
+
static readonly WS = 91;
|
|
108
|
+
static readonly Comment = 92;
|
|
109
|
+
static readonly UnterminatedString = 93;
|
|
110
|
+
static readonly String = 94;
|
|
111
|
+
static readonly LBRACE = 95;
|
|
112
|
+
static readonly RBRACE = 96;
|
|
113
|
+
static readonly RELOP = 97;
|
|
114
|
+
static readonly COMMA = 98;
|
|
115
|
+
static readonly SEMICOLON = 99;
|
|
116
|
+
static readonly LPAREN = 100;
|
|
117
|
+
static readonly RPAREN = 101;
|
|
118
|
+
static readonly MINUS = 102;
|
|
119
|
+
static readonly PERCENT = 103;
|
|
120
|
+
static readonly PLUS = 104;
|
|
121
|
+
static readonly MUL = 105;
|
|
122
|
+
static readonly DIV = 106;
|
|
123
|
+
static readonly ZERO = 107;
|
|
124
|
+
static readonly Natural = 108;
|
|
125
|
+
static readonly Real = 109;
|
|
126
|
+
static readonly Identifier = 110;
|
|
127
|
+
static readonly ERROR_CHARACTER = 111;
|
|
128
|
+
static readonly FACT = 112;
|
|
129
|
+
static readonly ATTRIBUTE = 113;
|
|
130
|
+
static readonly METRIC_TYPE = 114;
|
|
131
|
+
static readonly LABEL = 115;
|
|
132
|
+
static readonly LOCAL = 116;
|
|
133
|
+
static readonly PARAMETER = 117;
|
|
134
|
+
static readonly PROMPT = 118;
|
|
135
|
+
static readonly DATASET = 119;
|
|
136
|
+
static readonly UNKNOWN_TYPE = 120;
|
|
137
|
+
static readonly SEP = 121;
|
|
138
|
+
static readonly ID = 122;
|
|
135
139
|
static readonly OBJECT_TYPE = 1;
|
|
136
140
|
static readonly OBJECT_ID = 2;
|
|
137
141
|
static readonly channelNames: string[];
|
|
@@ -328,6 +332,18 @@ interface MaqlParserListener extends ParseTreeListener {
|
|
|
328
332
|
* @param ctx the parse tree
|
|
329
333
|
*/
|
|
330
334
|
exitRankSpecPercentage?: (ctx: RankSpecPercentageContext) => void;
|
|
335
|
+
/**
|
|
336
|
+
* Enter a parse tree produced by the `rankSpecParameter`
|
|
337
|
+
* labeled alternative in `MaqlParser.rankSpec`.
|
|
338
|
+
* @param ctx the parse tree
|
|
339
|
+
*/
|
|
340
|
+
enterRankSpecParameter?: (ctx: RankSpecParameterContext) => void;
|
|
341
|
+
/**
|
|
342
|
+
* Exit a parse tree produced by the `rankSpecParameter`
|
|
343
|
+
* labeled alternative in `MaqlParser.rankSpec`.
|
|
344
|
+
* @param ctx the parse tree
|
|
345
|
+
*/
|
|
346
|
+
exitRankSpecParameter?: (ctx: RankSpecParameterContext) => void;
|
|
331
347
|
/**
|
|
332
348
|
* Enter a parse tree produced by the `withPf`
|
|
333
349
|
* labeled alternative in `MaqlParser.withWithoutPf`.
|
|
@@ -1154,6 +1170,16 @@ interface MaqlParserListener extends ParseTreeListener {
|
|
|
1154
1170
|
* @param ctx the parse tree
|
|
1155
1171
|
*/
|
|
1156
1172
|
exitPrompt?: (ctx: PromptContext) => void;
|
|
1173
|
+
/**
|
|
1174
|
+
* Enter a parse tree produced by `MaqlParser.parameter`.
|
|
1175
|
+
* @param ctx the parse tree
|
|
1176
|
+
*/
|
|
1177
|
+
enterParameter?: (ctx: ParameterContext) => void;
|
|
1178
|
+
/**
|
|
1179
|
+
* Exit a parse tree produced by `MaqlParser.parameter`.
|
|
1180
|
+
* @param ctx the parse tree
|
|
1181
|
+
*/
|
|
1182
|
+
exitParameter?: (ctx: ParameterContext) => void;
|
|
1157
1183
|
/**
|
|
1158
1184
|
* Enter a parse tree produced by `MaqlParser.literal`.
|
|
1159
1185
|
* @param ctx the parse tree
|
|
@@ -1254,6 +1280,16 @@ interface MaqlParserListener extends ParseTreeListener {
|
|
|
1254
1280
|
* @param ctx the parse tree
|
|
1255
1281
|
*/
|
|
1256
1282
|
exitListLiteral?: (ctx: ListLiteralContext) => void;
|
|
1283
|
+
/**
|
|
1284
|
+
* Enter a parse tree produced by `MaqlParser.listItem`.
|
|
1285
|
+
* @param ctx the parse tree
|
|
1286
|
+
*/
|
|
1287
|
+
enterListItem?: (ctx: ListItemContext) => void;
|
|
1288
|
+
/**
|
|
1289
|
+
* Exit a parse tree produced by `MaqlParser.listItem`.
|
|
1290
|
+
* @param ctx the parse tree
|
|
1291
|
+
*/
|
|
1292
|
+
exitListItem?: (ctx: ListItemContext) => void;
|
|
1257
1293
|
/**
|
|
1258
1294
|
* Enter a parse tree produced by `MaqlParser.nullLiteral`.
|
|
1259
1295
|
* @param ctx the parse tree
|
|
@@ -1382,6 +1418,13 @@ interface MaqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
1382
1418
|
* @return the visitor result
|
|
1383
1419
|
*/
|
|
1384
1420
|
visitRankSpecPercentage?: (ctx: RankSpecPercentageContext) => Result;
|
|
1421
|
+
/**
|
|
1422
|
+
* Visit a parse tree produced by the `rankSpecParameter`
|
|
1423
|
+
* labeled alternative in `MaqlParser.rankSpec`.
|
|
1424
|
+
* @param ctx the parse tree
|
|
1425
|
+
* @return the visitor result
|
|
1426
|
+
*/
|
|
1427
|
+
visitRankSpecParameter?: (ctx: RankSpecParameterContext) => Result;
|
|
1385
1428
|
/**
|
|
1386
1429
|
* Visit a parse tree produced by the `withPf`
|
|
1387
1430
|
* labeled alternative in `MaqlParser.withWithoutPf`.
|
|
@@ -1875,6 +1918,12 @@ interface MaqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
1875
1918
|
* @return the visitor result
|
|
1876
1919
|
*/
|
|
1877
1920
|
visitPrompt?: (ctx: PromptContext) => Result;
|
|
1921
|
+
/**
|
|
1922
|
+
* Visit a parse tree produced by `MaqlParser.parameter`.
|
|
1923
|
+
* @param ctx the parse tree
|
|
1924
|
+
* @return the visitor result
|
|
1925
|
+
*/
|
|
1926
|
+
visitParameter?: (ctx: ParameterContext) => Result;
|
|
1878
1927
|
/**
|
|
1879
1928
|
* Visit a parse tree produced by `MaqlParser.literal`.
|
|
1880
1929
|
* @param ctx the parse tree
|
|
@@ -1935,6 +1984,12 @@ interface MaqlParserVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
1935
1984
|
* @return the visitor result
|
|
1936
1985
|
*/
|
|
1937
1986
|
visitListLiteral?: (ctx: ListLiteralContext) => Result;
|
|
1987
|
+
/**
|
|
1988
|
+
* Visit a parse tree produced by `MaqlParser.listItem`.
|
|
1989
|
+
* @param ctx the parse tree
|
|
1990
|
+
* @return the visitor result
|
|
1991
|
+
*/
|
|
1992
|
+
visitListItem?: (ctx: ListItemContext) => Result;
|
|
1938
1993
|
/**
|
|
1939
1994
|
* Visit a parse tree produced by `MaqlParser.nullLiteral`.
|
|
1940
1995
|
* @param ctx the parse tree
|
|
@@ -2037,37 +2092,41 @@ declare class MaqlParser extends Parser {
|
|
|
2037
2092
|
static readonly YEAR = 85;
|
|
2038
2093
|
static readonly WEEK = 86;
|
|
2039
2094
|
static readonly WEEKOFYEAR = 87;
|
|
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
|
|
2069
|
-
static readonly
|
|
2070
|
-
static readonly
|
|
2095
|
+
static readonly FISCALMONTH = 88;
|
|
2096
|
+
static readonly FISCALQUARTER = 89;
|
|
2097
|
+
static readonly FISCALYEAR = 90;
|
|
2098
|
+
static readonly WS = 91;
|
|
2099
|
+
static readonly Comment = 92;
|
|
2100
|
+
static readonly UnterminatedString = 93;
|
|
2101
|
+
static readonly String = 94;
|
|
2102
|
+
static readonly LBRACE = 95;
|
|
2103
|
+
static readonly RBRACE = 96;
|
|
2104
|
+
static readonly RELOP = 97;
|
|
2105
|
+
static readonly COMMA = 98;
|
|
2106
|
+
static readonly SEMICOLON = 99;
|
|
2107
|
+
static readonly LPAREN = 100;
|
|
2108
|
+
static readonly RPAREN = 101;
|
|
2109
|
+
static readonly MINUS = 102;
|
|
2110
|
+
static readonly PERCENT = 103;
|
|
2111
|
+
static readonly PLUS = 104;
|
|
2112
|
+
static readonly MUL = 105;
|
|
2113
|
+
static readonly DIV = 106;
|
|
2114
|
+
static readonly ZERO = 107;
|
|
2115
|
+
static readonly Natural = 108;
|
|
2116
|
+
static readonly Real = 109;
|
|
2117
|
+
static readonly Identifier = 110;
|
|
2118
|
+
static readonly ERROR_CHARACTER = 111;
|
|
2119
|
+
static readonly FACT = 112;
|
|
2120
|
+
static readonly ATTRIBUTE = 113;
|
|
2121
|
+
static readonly METRIC_TYPE = 114;
|
|
2122
|
+
static readonly LABEL = 115;
|
|
2123
|
+
static readonly LOCAL = 116;
|
|
2124
|
+
static readonly PARAMETER = 117;
|
|
2125
|
+
static readonly PROMPT = 118;
|
|
2126
|
+
static readonly DATASET = 119;
|
|
2127
|
+
static readonly UNKNOWN_TYPE = 120;
|
|
2128
|
+
static readonly SEP = 121;
|
|
2129
|
+
static readonly ID = 122;
|
|
2071
2130
|
static readonly RULE_maql = 0;
|
|
2072
2131
|
static readonly RULE_maqlExpression = 1;
|
|
2073
2132
|
static readonly RULE_selectExpression = 2;
|
|
@@ -2135,18 +2194,20 @@ declare class MaqlParser extends Parser {
|
|
|
2135
2194
|
static readonly RULE_numericType = 64;
|
|
2136
2195
|
static readonly RULE_numeric = 65;
|
|
2137
2196
|
static readonly RULE_prompt = 66;
|
|
2138
|
-
static readonly
|
|
2139
|
-
static readonly
|
|
2140
|
-
static readonly
|
|
2141
|
-
static readonly
|
|
2142
|
-
static readonly
|
|
2143
|
-
static readonly
|
|
2144
|
-
static readonly
|
|
2145
|
-
static readonly
|
|
2146
|
-
static readonly
|
|
2147
|
-
static readonly
|
|
2148
|
-
static readonly
|
|
2149
|
-
static readonly
|
|
2197
|
+
static readonly RULE_parameter = 67;
|
|
2198
|
+
static readonly RULE_literal = 68;
|
|
2199
|
+
static readonly RULE_number = 69;
|
|
2200
|
+
static readonly RULE_uNumber = 70;
|
|
2201
|
+
static readonly RULE_integer = 71;
|
|
2202
|
+
static readonly RULE_uInteger = 72;
|
|
2203
|
+
static readonly RULE_posInteger = 73;
|
|
2204
|
+
static readonly RULE_uReal = 74;
|
|
2205
|
+
static readonly RULE_percentage = 75;
|
|
2206
|
+
static readonly RULE_string = 76;
|
|
2207
|
+
static readonly RULE_listLiteral = 77;
|
|
2208
|
+
static readonly RULE_listItem = 78;
|
|
2209
|
+
static readonly RULE_nullLiteral = 79;
|
|
2210
|
+
static readonly RULE_granularity = 80;
|
|
2150
2211
|
static readonly ruleNames: string[];
|
|
2151
2212
|
private static readonly _LITERAL_NAMES;
|
|
2152
2213
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -2224,6 +2285,7 @@ declare class MaqlParser extends Parser {
|
|
|
2224
2285
|
numericType(): NumericTypeContext;
|
|
2225
2286
|
numeric(): NumericContext;
|
|
2226
2287
|
prompt(): PromptContext;
|
|
2288
|
+
parameter(): ParameterContext;
|
|
2227
2289
|
literal(): LiteralContext;
|
|
2228
2290
|
number(): NumberContext;
|
|
2229
2291
|
uNumber(): UNumberContext;
|
|
@@ -2234,6 +2296,7 @@ declare class MaqlParser extends Parser {
|
|
|
2234
2296
|
percentage(): PercentageContext;
|
|
2235
2297
|
string(): StringContext;
|
|
2236
2298
|
listLiteral(): ListLiteralContext;
|
|
2299
|
+
listItem(): ListItemContext;
|
|
2237
2300
|
nullLiteral(): NullLiteralContext;
|
|
2238
2301
|
granularity(): GranularityContext;
|
|
2239
2302
|
private static readonly _serializedATNSegments;
|
|
@@ -2487,6 +2550,7 @@ declare class PrimaryExpressionContext extends ParserRuleContext {
|
|
|
2487
2550
|
numeric(): NumericContext | undefined;
|
|
2488
2551
|
attribute(): AttributeContext | undefined;
|
|
2489
2552
|
prompt(): PromptContext | undefined;
|
|
2553
|
+
parameter(): ParameterContext | undefined;
|
|
2490
2554
|
literal(): LiteralContext | undefined;
|
|
2491
2555
|
timeMacro(): TimeMacroContext | undefined;
|
|
2492
2556
|
granularity(): GranularityContext | undefined;
|
|
@@ -3043,6 +3107,13 @@ declare class RankSpecPercentageContext extends RankSpecContext {
|
|
|
3043
3107
|
exitRule(listener: MaqlParserListener): void;
|
|
3044
3108
|
accept<Result>(visitor: MaqlParserVisitor<Result>): Result;
|
|
3045
3109
|
}
|
|
3110
|
+
declare class RankSpecParameterContext extends RankSpecContext {
|
|
3111
|
+
parameter(): ParameterContext;
|
|
3112
|
+
constructor(ctx: RankSpecContext);
|
|
3113
|
+
enterRule(listener: MaqlParserListener): void;
|
|
3114
|
+
exitRule(listener: MaqlParserListener): void;
|
|
3115
|
+
accept<Result>(visitor: MaqlParserVisitor<Result>): Result;
|
|
3116
|
+
}
|
|
3046
3117
|
declare class RankingFilterInOfContext extends ParserRuleContext {
|
|
3047
3118
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
3048
3119
|
get ruleIndex(): number;
|
|
@@ -3150,6 +3221,18 @@ declare class PromptContext extends ParserRuleContext {
|
|
|
3150
3221
|
exitRule(listener: MaqlParserListener): void;
|
|
3151
3222
|
accept<Result>(visitor: MaqlParserVisitor<Result>): Result;
|
|
3152
3223
|
}
|
|
3224
|
+
declare class ParameterContext extends ParserRuleContext {
|
|
3225
|
+
LBRACE(): TerminalNode;
|
|
3226
|
+
PARAMETER(): TerminalNode;
|
|
3227
|
+
SEP(): TerminalNode;
|
|
3228
|
+
ID(): TerminalNode;
|
|
3229
|
+
RBRACE(): TerminalNode;
|
|
3230
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
3231
|
+
get ruleIndex(): number;
|
|
3232
|
+
enterRule(listener: MaqlParserListener): void;
|
|
3233
|
+
exitRule(listener: MaqlParserListener): void;
|
|
3234
|
+
accept<Result>(visitor: MaqlParserVisitor<Result>): Result;
|
|
3235
|
+
}
|
|
3153
3236
|
declare class LiteralContext extends ParserRuleContext {
|
|
3154
3237
|
uNumber(): UNumberContext | undefined;
|
|
3155
3238
|
string(): StringContext | undefined;
|
|
@@ -3241,11 +3324,20 @@ declare class StringContext extends ParserRuleContext {
|
|
|
3241
3324
|
accept<Result>(visitor: MaqlParserVisitor<Result>): Result;
|
|
3242
3325
|
}
|
|
3243
3326
|
declare class ListLiteralContext extends ParserRuleContext {
|
|
3327
|
+
listItem(): ListItemContext[];
|
|
3328
|
+
listItem(i: number): ListItemContext;
|
|
3329
|
+
COMMA(): TerminalNode[];
|
|
3330
|
+
COMMA(i: number): TerminalNode;
|
|
3331
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
3332
|
+
get ruleIndex(): number;
|
|
3333
|
+
enterRule(listener: MaqlParserListener): void;
|
|
3334
|
+
exitRule(listener: MaqlParserListener): void;
|
|
3335
|
+
accept<Result>(visitor: MaqlParserVisitor<Result>): Result;
|
|
3336
|
+
}
|
|
3337
|
+
declare class ListItemContext extends ParserRuleContext {
|
|
3244
3338
|
string(): StringContext | undefined;
|
|
3245
3339
|
number(): NumberContext | undefined;
|
|
3246
3340
|
nullLiteral(): NullLiteralContext | undefined;
|
|
3247
|
-
COMMA(): TerminalNode | undefined;
|
|
3248
|
-
listLiteral(): ListLiteralContext | undefined;
|
|
3249
3341
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
3250
3342
|
get ruleIndex(): number;
|
|
3251
3343
|
enterRule(listener: MaqlParserListener): void;
|
|
@@ -3277,6 +3369,9 @@ declare class GranularityContext extends ParserRuleContext {
|
|
|
3277
3369
|
YEAR(): TerminalNode | undefined;
|
|
3278
3370
|
WEEK(): TerminalNode | undefined;
|
|
3279
3371
|
WEEKOFYEAR(): TerminalNode | undefined;
|
|
3372
|
+
FISCALMONTH(): TerminalNode | undefined;
|
|
3373
|
+
FISCALQUARTER(): TerminalNode | undefined;
|
|
3374
|
+
FISCALYEAR(): TerminalNode | undefined;
|
|
3280
3375
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
3281
3376
|
get ruleIndex(): number;
|
|
3282
3377
|
enterRule(listener: MaqlParserListener): void;
|
|
@@ -4578,6 +4673,7 @@ declare class MaqlAstVisitor extends AbstractParseTreeVisitor<AstNode> implement
|
|
|
4578
4673
|
visitRelationBetween(ctx: RelationBetweenContext): AstNode;
|
|
4579
4674
|
visitRelationIn(ctx: RelationInContext): AstNode;
|
|
4580
4675
|
visitListLiteral(ctx: ListLiteralContext): AstNode;
|
|
4676
|
+
visitListItem(ctx: ListItemContext): AstNode;
|
|
4581
4677
|
visitRelationLike(ctx: RelationLikeContext): AstNode;
|
|
4582
4678
|
visitAddition(ctx: AdditionContext): AstNode;
|
|
4583
4679
|
visitMultiplication(ctx: MultiplicationContext): AstNode;
|
|
@@ -4624,6 +4720,7 @@ declare class MaqlAstVisitor extends AbstractParseTreeVisitor<AstNode> implement
|
|
|
4624
4720
|
visitFact(ctx: FactContext): AstNode;
|
|
4625
4721
|
visitAttribute(ctx: AttributeContext): AstNode;
|
|
4626
4722
|
visitAttributeList(ctx: AttributeListContext): AstNode;
|
|
4723
|
+
visitParameter(ctx: ParameterContext): AstNode;
|
|
4627
4724
|
visitPrompt(ctx: PromptContext): AstNode;
|
|
4628
4725
|
private visitObject;
|
|
4629
4726
|
visitUReal(ctx: URealContext): AstNode;
|
|
@@ -4655,7 +4752,7 @@ declare class MaqlAstVisitor extends AbstractParseTreeVisitor<AstNode> implement
|
|
|
4655
4752
|
visitWithoutPf(ctx: WithoutPfContext): AstNode;
|
|
4656
4753
|
visitPf(ctx: WithPfContext | WithoutPfContext, pfType: ParentFilterModification, operator: ModificationOperator): AstNode;
|
|
4657
4754
|
}
|
|
4658
|
-
declare type ObjectContext = NumericContext | AttributeContext | FactContext | PromptContext;
|
|
4755
|
+
declare type ObjectContext = NumericContext | AttributeContext | FactContext | ParameterContext | PromptContext;
|
|
4659
4756
|
|
|
4660
4757
|
/**
|
|
4661
4758
|
* AST visitor which makes adjustment to an AST such that its shape is the same as the output of
|
|
@@ -4668,4 +4765,4 @@ declare class AstNormalizer extends AbstractAstVisitor<AstNode> {
|
|
|
4668
4765
|
visitOperatorNode(node: OperatorNode): AstNode;
|
|
4669
4766
|
}
|
|
4670
4767
|
|
|
4671
|
-
export { AbstractAstVisitor, AdditionContext, AdditiveOperatorContext, AllOtherContext, AstNode, AstNormalizer, AstType, AttributeContext, AttributeListContext, AttributeTypeContext, BooleanLiteral, BooleanLiteralNode, By, ByContext, ByNode, Case, CaseConditionalContext, CaseContext, CaseInsensitiveCharStream, CaseNode, ComparisonContext, Conditional, ConditionalContext, ConditionalNode, ConjunctionContext, CurrentRowContext, DatetimeTransformation, DatetimeTransformationNode, DimensionAllContext, DimensionContext, DimensionListContext, DimensionObjectContext, DimensionOperator, DimensionOperatorNode, DimensionsAllOtherContext, DimensionsContext, DimensionsDimensionListContext, Direction, DirectionNode, DisjunctionContext, Else, ElseNode, EmptyNode, Expression, ExpressionContext, ExpressionListContext, ExpressionNode, FactContext, FalseLiteralContext, Filter, FilterNode, ForEach, ForEachContext, ForEachNode, ForTransformationContext, FunctionAstType, FunctionCallContext, FunctionCallLastFirstValueContext, FunctionCallRankContext, FunctionCallRunContext, FunctionContext, FunctionDefinition, FunctionName, FunctionNode, FunctionParameter, Granularity, GranularityContext, GranularityNode, HavingContext, IAstNode, IPosition, IRange, Identifier, IdentifierNode, IfContext, Image, ImageNode, IntegerContext, LastFirstValueFunction, LastFirstValueFunctionNode, LastfirstvalFunctionNameContext, LikeContext, List, ListLiteralContext, ListNode, LiteralContext, MaqlAstVisitor, MaqlComputedAttributeContext, MaqlContext, MaqlExpressionContext, MaqlFilterContext, MaqlFunction, MaqlLexer, MaqlMeasureContext, MaqlParser, MaqlParserListener, MaqlParserVisitor, MetricReference, MetricReferenceNode, ModificationOperator, ModificationOperatorNode, MultiplicationContext, MultiplicativeOperatorContext, NegationContext, NullLiteral, NullLiteralContext, NullLiteralNode, NumberContext, NumberLiteral, NumberLiteralFormat, NumberLiteralNode, NumericContext, NumericTypeContext, ObjectContext, ObjectId, ObjectSpace, ObjectType, Operator, OperatorNode, OrderBy, OrderByElement, OrderByElementNode, OrderByNode, OrderListContext, OrderbyContext, OrderedElementContext, OverToContext, ParameterType, ParentFilterModification, ParentFilterModificationNode, ParenthesizedExpressionContext, PercentageContext, PosIntegerContext, PrefixUnaryExpressionContext, PrefixUnaryOperatorContext, PrimaryExpressionContext, PromptContext, RankDirContext, RankFunction, RankFunctionNameContext, RankFunctionNode, RankSpecContext, RankSpecPercentageContext, RankSpecUnumberContext, RankingFilter, RankingFilterContext, RankingFilterInContext, RankingFilterInOfContext, RankingFilterNode, RankingFilterOfContext, RelationBetweenContext, RelationContext, RelationInContext, RelationLikeContext, RelationNegatableContext, RelationNotContext, RelationRelopContext, ReportMetricContext, RollWindowContext, RunningFunction, RunningFunctionNameContext, RunningFunctionNode, Select, SelectExpressionContext, SelectNode, StringContext, StringLiteral, StringLiteralNode, SyntaxErrorListener, TimeMacroContext, TimeMacroName, TimeMacroNameContext, TopBottomContext, TransFunctionContext, TrueLiteralContext, UIntegerContext, UIntegerPosContext, UIntegerZeroContext, UNumberContext, URealContext, Using, UsingContext, UsingNode, WhereContext, WhereHavingContext, Window, WindowBound, WindowBoundContext, WindowBoundNode, WindowBoundedContext, WindowDirContext, WindowNode, WindowUnboundedContext, WithPfContext, WithWithoutPfContext, WithinContext, WithinDimensionsContext, WithoutPfContext, escapeString, functionDefinitions, isMaqlFunction, isMaqlFunctionName, isOperator, isRankingFilter, isWindowBound, mergeRanges, nonNullContent, positionInRange };
|
|
4768
|
+
export { AbstractAstVisitor, AdditionContext, AdditiveOperatorContext, AllOtherContext, AstNode, AstNormalizer, AstType, AttributeContext, AttributeListContext, AttributeTypeContext, BooleanLiteral, BooleanLiteralNode, By, ByContext, ByNode, Case, CaseConditionalContext, CaseContext, CaseInsensitiveCharStream, CaseNode, ComparisonContext, Conditional, ConditionalContext, ConditionalNode, ConjunctionContext, CurrentRowContext, DatetimeTransformation, DatetimeTransformationNode, DimensionAllContext, DimensionContext, DimensionListContext, DimensionObjectContext, DimensionOperator, DimensionOperatorNode, DimensionsAllOtherContext, DimensionsContext, DimensionsDimensionListContext, Direction, DirectionNode, DisjunctionContext, Else, ElseNode, EmptyNode, Expression, ExpressionContext, ExpressionListContext, ExpressionNode, FactContext, FalseLiteralContext, Filter, FilterNode, ForEach, ForEachContext, ForEachNode, ForTransformationContext, FunctionAstType, FunctionCallContext, FunctionCallLastFirstValueContext, FunctionCallRankContext, FunctionCallRunContext, FunctionContext, FunctionDefinition, FunctionName, FunctionNode, FunctionParameter, Granularity, GranularityContext, GranularityNode, HavingContext, IAstNode, IPosition, IRange, Identifier, IdentifierNode, IfContext, Image, ImageNode, IntegerContext, LastFirstValueFunction, LastFirstValueFunctionNode, LastfirstvalFunctionNameContext, LikeContext, List, ListItemContext, ListLiteralContext, ListNode, LiteralContext, MaqlAstVisitor, MaqlComputedAttributeContext, MaqlContext, MaqlExpressionContext, MaqlFilterContext, MaqlFunction, MaqlLexer, MaqlMeasureContext, MaqlParser, MaqlParserListener, MaqlParserVisitor, MetricReference, MetricReferenceNode, ModificationOperator, ModificationOperatorNode, MultiplicationContext, MultiplicativeOperatorContext, NegationContext, NullLiteral, NullLiteralContext, NullLiteralNode, NumberContext, NumberLiteral, NumberLiteralFormat, NumberLiteralNode, NumericContext, NumericTypeContext, ObjectContext, ObjectId, ObjectSpace, ObjectType, Operator, OperatorNode, OrderBy, OrderByElement, OrderByElementNode, OrderByNode, OrderListContext, OrderbyContext, OrderedElementContext, OverToContext, ParameterContext, ParameterType, ParentFilterModification, ParentFilterModificationNode, ParenthesizedExpressionContext, PercentageContext, PosIntegerContext, PrefixUnaryExpressionContext, PrefixUnaryOperatorContext, PrimaryExpressionContext, PromptContext, RankDirContext, RankFunction, RankFunctionNameContext, RankFunctionNode, RankSpecContext, RankSpecParameterContext, RankSpecPercentageContext, RankSpecUnumberContext, RankingFilter, RankingFilterContext, RankingFilterInContext, RankingFilterInOfContext, RankingFilterNode, RankingFilterOfContext, RelationBetweenContext, RelationContext, RelationInContext, RelationLikeContext, RelationNegatableContext, RelationNotContext, RelationRelopContext, ReportMetricContext, RollWindowContext, RunningFunction, RunningFunctionNameContext, RunningFunctionNode, Select, SelectExpressionContext, SelectNode, StringContext, StringLiteral, StringLiteralNode, SyntaxErrorListener, TimeMacroContext, TimeMacroName, TimeMacroNameContext, TopBottomContext, TransFunctionContext, TrueLiteralContext, UIntegerContext, UIntegerPosContext, UIntegerZeroContext, UNumberContext, URealContext, Using, UsingContext, UsingNode, WhereContext, WhereHavingContext, Window, WindowBound, WindowBoundContext, WindowBoundNode, WindowBoundedContext, WindowDirContext, WindowNode, WindowUnboundedContext, WithPfContext, WithWithoutPfContext, WithinContext, WithinDimensionsContext, WithoutPfContext, escapeString, functionDefinitions, isMaqlFunction, isMaqlFunctionName, isOperator, isRankingFilter, isWindowBound, mergeRanges, nonNullContent, positionInRange };
|