@malloydata/malloy 0.0.262 → 0.0.263-dev250414184158

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.
Files changed (40) hide show
  1. package/dist/lang/ast/expressions/expr-filter-expr.d.ts +0 -3
  2. package/dist/lang/ast/expressions/expr-filter-expr.js +7 -59
  3. package/dist/lang/ast/expressions/expr-func.js +3 -0
  4. package/dist/lang/ast/expressions/pick-when.js +6 -0
  5. package/dist/lang/ast/field-space/dynamic-space.js +1 -1
  6. package/dist/lang/ast/field-space/join-space-field.js +1 -1
  7. package/dist/lang/ast/index.d.ts +1 -0
  8. package/dist/lang/ast/index.js +1 -0
  9. package/dist/lang/ast/parameters/has-parameter.d.ts +6 -3
  10. package/dist/lang/ast/parameters/has-parameter.js +28 -9
  11. package/dist/lang/ast/query-items/field-declaration.d.ts +1 -2
  12. package/dist/lang/ast/query-items/field-declaration.js +0 -4
  13. package/dist/lang/ast/source-elements/named-source.js +6 -0
  14. package/dist/lang/ast/source-properties/join.d.ts +3 -3
  15. package/dist/lang/ast/source-properties/join.js +2 -2
  16. package/dist/lang/ast/types/expression-def.d.ts +2 -1
  17. package/dist/lang/ast/types/expression-def.js +79 -17
  18. package/dist/lang/ast/types/space-param.d.ts +1 -3
  19. package/dist/lang/ast/types/space-param.js +8 -8
  20. package/dist/lang/lib/Malloy/MalloyLexer.d.ts +114 -113
  21. package/dist/lang/lib/Malloy/MalloyLexer.js +1272 -1266
  22. package/dist/lang/lib/Malloy/MalloyParser.d.ts +253 -239
  23. package/dist/lang/lib/Malloy/MalloyParser.js +2244 -2142
  24. package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +11 -0
  25. package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +7 -0
  26. package/dist/lang/malloy-to-ast.d.ts +1 -1
  27. package/dist/lang/malloy-to-ast.js +38 -12
  28. package/dist/lang/test/expr-to-str.js +3 -20
  29. package/dist/model/filter_compilers.d.ts +27 -0
  30. package/dist/model/filter_compilers.js +335 -3
  31. package/dist/model/malloy_query.d.ts +2 -1
  32. package/dist/model/malloy_query.js +45 -10
  33. package/dist/model/malloy_types.d.ts +18 -6
  34. package/dist/model/malloy_types.js +6 -2
  35. package/dist/to_stable.js +19 -5
  36. package/dist/version.d.ts +1 -1
  37. package/dist/version.js +1 -1
  38. package/package.json +4 -4
  39. package/dist/model/filter_temporal_compiler.d.ts +0 -29
  40. package/dist/model/filter_temporal_compiler.js +0 -343
@@ -59,119 +59,120 @@ export declare class MalloyLexer extends Lexer {
59
59
  static readonly EXCLUDE = 54;
60
60
  static readonly EXTEND = 55;
61
61
  static readonly FALSE = 56;
62
- static readonly FULL = 57;
63
- static readonly FOR = 58;
64
- static readonly FROM = 59;
65
- static readonly HAS = 60;
66
- static readonly HOUR = 61;
67
- static readonly IMPORT = 62;
68
- static readonly INCLUDE = 63;
69
- static readonly INNER = 64;
70
- static readonly IS = 65;
71
- static readonly IN = 66;
72
- static readonly INTERNAL_KW = 67;
73
- static readonly JSON = 68;
74
- static readonly LAST = 69;
75
- static readonly LEFT = 70;
76
- static readonly LIKE = 71;
77
- static readonly MAX = 72;
78
- static readonly MIN = 73;
79
- static readonly MINUTE = 74;
80
- static readonly MONTH = 75;
81
- static readonly NOT = 76;
82
- static readonly NOW = 77;
83
- static readonly NULL = 78;
84
- static readonly NUMBER = 79;
85
- static readonly ON = 80;
86
- static readonly OR = 81;
87
- static readonly PICK = 82;
88
- static readonly PRIVATE_KW = 83;
89
- static readonly PUBLIC_KW = 84;
90
- static readonly QUARTER = 85;
91
- static readonly RIGHT = 86;
92
- static readonly SECOND = 87;
93
- static readonly STRING = 88;
94
- static readonly SOURCE_KW = 89;
95
- static readonly SUM = 90;
96
- static readonly SQL = 91;
97
- static readonly TABLE = 92;
98
- static readonly THEN = 93;
99
- static readonly THIS = 94;
100
- static readonly TIMESTAMP = 95;
101
- static readonly TO = 96;
102
- static readonly TRUE = 97;
103
- static readonly TURTLE = 98;
104
- static readonly WEEK = 99;
105
- static readonly WHEN = 100;
106
- static readonly WITH = 101;
107
- static readonly YEAR = 102;
108
- static readonly UNGROUPED = 103;
109
- static readonly HACKY_REGEX = 104;
110
- static readonly RAW_SQ = 105;
111
- static readonly RAW_DQ = 106;
112
- static readonly SQ3_FILTER = 107;
113
- static readonly SQ_FILTER = 108;
114
- static readonly DQ3_FILTER = 109;
115
- static readonly DQ_FILTER = 110;
116
- static readonly BQ3_FILTER = 111;
117
- static readonly BQ_FILTER = 112;
118
- static readonly SQ_STRING = 113;
119
- static readonly DQ_STRING = 114;
120
- static readonly BQ_STRING = 115;
121
- static readonly DOC_ANNOTATION = 116;
122
- static readonly ANNOTATION = 117;
123
- static readonly AMPER = 118;
124
- static readonly ARROW = 119;
125
- static readonly FAT_ARROW = 120;
126
- static readonly OPAREN = 121;
127
- static readonly CPAREN = 122;
128
- static readonly OBRACK = 123;
129
- static readonly CBRACK = 124;
130
- static readonly OCURLY = 125;
131
- static readonly CCURLY = 126;
132
- static readonly DOUBLECOLON = 127;
133
- static readonly TRIPLECOLON = 128;
134
- static readonly EXCLAM = 129;
135
- static readonly COLON = 130;
136
- static readonly COMMA = 131;
137
- static readonly DOT = 132;
138
- static readonly LT = 133;
139
- static readonly GT = 134;
140
- static readonly EQ = 135;
141
- static readonly NE = 136;
142
- static readonly LTE = 137;
143
- static readonly GTE = 138;
144
- static readonly PLUS = 139;
145
- static readonly MINUS = 140;
146
- static readonly STAR = 141;
147
- static readonly STARSTAR = 142;
148
- static readonly SLASH = 143;
149
- static readonly BAR = 144;
150
- static readonly SEMI = 145;
151
- static readonly NOT_MATCH = 146;
152
- static readonly MATCH = 147;
153
- static readonly PERCENT = 148;
154
- static readonly DOUBLE_QMARK = 149;
155
- static readonly QMARK = 150;
156
- static readonly LITERAL_TIMESTAMP = 151;
157
- static readonly LITERAL_HOUR = 152;
158
- static readonly LITERAL_DAY = 153;
159
- static readonly LITERAL_QUARTER = 154;
160
- static readonly LITERAL_MONTH = 155;
161
- static readonly LITERAL_WEEK = 156;
162
- static readonly LITERAL_YEAR = 157;
163
- static readonly IDENTIFIER = 158;
164
- static readonly PERCENT_LITERAL = 159;
165
- static readonly NUMERIC_LITERAL = 160;
166
- static readonly INTEGER_LITERAL = 161;
167
- static readonly BLOCK_COMMENT = 162;
168
- static readonly COMMENT_TO_EOL = 163;
169
- static readonly WHITE_SPACE = 164;
170
- static readonly SQL_BEGIN = 165;
171
- static readonly UNWATED_CHARS_TRAILING_NUMBERS = 166;
172
- static readonly UNEXPECTED_CHAR = 167;
173
- static readonly OPEN_CODE = 168;
174
- static readonly SQL_END = 169;
62
+ static readonly FILTER = 57;
63
+ static readonly FULL = 58;
64
+ static readonly FOR = 59;
65
+ static readonly FROM = 60;
66
+ static readonly HAS = 61;
67
+ static readonly HOUR = 62;
68
+ static readonly IMPORT = 63;
69
+ static readonly INCLUDE = 64;
70
+ static readonly INNER = 65;
71
+ static readonly IS = 66;
72
+ static readonly IN = 67;
73
+ static readonly INTERNAL_KW = 68;
74
+ static readonly JSON = 69;
75
+ static readonly LAST = 70;
76
+ static readonly LEFT = 71;
77
+ static readonly LIKE = 72;
78
+ static readonly MAX = 73;
79
+ static readonly MIN = 74;
80
+ static readonly MINUTE = 75;
81
+ static readonly MONTH = 76;
82
+ static readonly NOT = 77;
83
+ static readonly NOW = 78;
84
+ static readonly NULL = 79;
85
+ static readonly NUMBER = 80;
86
+ static readonly ON = 81;
87
+ static readonly OR = 82;
88
+ static readonly PICK = 83;
89
+ static readonly PRIVATE_KW = 84;
90
+ static readonly PUBLIC_KW = 85;
91
+ static readonly QUARTER = 86;
92
+ static readonly RIGHT = 87;
93
+ static readonly SECOND = 88;
94
+ static readonly STRING = 89;
95
+ static readonly SOURCE_KW = 90;
96
+ static readonly SUM = 91;
97
+ static readonly SQL = 92;
98
+ static readonly TABLE = 93;
99
+ static readonly THEN = 94;
100
+ static readonly THIS = 95;
101
+ static readonly TIMESTAMP = 96;
102
+ static readonly TO = 97;
103
+ static readonly TRUE = 98;
104
+ static readonly TURTLE = 99;
105
+ static readonly WEEK = 100;
106
+ static readonly WHEN = 101;
107
+ static readonly WITH = 102;
108
+ static readonly YEAR = 103;
109
+ static readonly UNGROUPED = 104;
110
+ static readonly HACKY_REGEX = 105;
111
+ static readonly RAW_SQ = 106;
112
+ static readonly RAW_DQ = 107;
113
+ static readonly SQ3_FILTER = 108;
114
+ static readonly SQ_FILTER = 109;
115
+ static readonly DQ3_FILTER = 110;
116
+ static readonly DQ_FILTER = 111;
117
+ static readonly BQ3_FILTER = 112;
118
+ static readonly BQ_FILTER = 113;
119
+ static readonly SQ_STRING = 114;
120
+ static readonly DQ_STRING = 115;
121
+ static readonly BQ_STRING = 116;
122
+ static readonly DOC_ANNOTATION = 117;
123
+ static readonly ANNOTATION = 118;
124
+ static readonly AMPER = 119;
125
+ static readonly ARROW = 120;
126
+ static readonly FAT_ARROW = 121;
127
+ static readonly OPAREN = 122;
128
+ static readonly CPAREN = 123;
129
+ static readonly OBRACK = 124;
130
+ static readonly CBRACK = 125;
131
+ static readonly OCURLY = 126;
132
+ static readonly CCURLY = 127;
133
+ static readonly DOUBLECOLON = 128;
134
+ static readonly TRIPLECOLON = 129;
135
+ static readonly EXCLAM = 130;
136
+ static readonly COLON = 131;
137
+ static readonly COMMA = 132;
138
+ static readonly DOT = 133;
139
+ static readonly LT = 134;
140
+ static readonly GT = 135;
141
+ static readonly EQ = 136;
142
+ static readonly NE = 137;
143
+ static readonly LTE = 138;
144
+ static readonly GTE = 139;
145
+ static readonly PLUS = 140;
146
+ static readonly MINUS = 141;
147
+ static readonly STAR = 142;
148
+ static readonly STARSTAR = 143;
149
+ static readonly SLASH = 144;
150
+ static readonly BAR = 145;
151
+ static readonly SEMI = 146;
152
+ static readonly NOT_MATCH = 147;
153
+ static readonly MATCH = 148;
154
+ static readonly PERCENT = 149;
155
+ static readonly DOUBLE_QMARK = 150;
156
+ static readonly QMARK = 151;
157
+ static readonly LITERAL_TIMESTAMP = 152;
158
+ static readonly LITERAL_HOUR = 153;
159
+ static readonly LITERAL_DAY = 154;
160
+ static readonly LITERAL_QUARTER = 155;
161
+ static readonly LITERAL_MONTH = 156;
162
+ static readonly LITERAL_WEEK = 157;
163
+ static readonly LITERAL_YEAR = 158;
164
+ static readonly IDENTIFIER = 159;
165
+ static readonly PERCENT_LITERAL = 160;
166
+ static readonly NUMERIC_LITERAL = 161;
167
+ static readonly INTEGER_LITERAL = 162;
168
+ static readonly BLOCK_COMMENT = 163;
169
+ static readonly COMMENT_TO_EOL = 164;
170
+ static readonly WHITE_SPACE = 165;
171
+ static readonly SQL_BEGIN = 166;
172
+ static readonly UNWATED_CHARS_TRAILING_NUMBERS = 167;
173
+ static readonly UNEXPECTED_CHAR = 168;
174
+ static readonly OPEN_CODE = 169;
175
+ static readonly SQL_END = 170;
175
176
  static readonly SQL_MODE = 1;
176
177
  static readonly channelNames: string[];
177
178
  static readonly modeNames: string[];