@malloydata/malloy 0.0.2 → 0.0.3

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 (46) hide show
  1. package/README.md +12 -11
  2. package/dist/dialect/duckdb.d.ts +1 -1
  3. package/dist/dialect/duckdb.js +35 -37
  4. package/dist/dialect/postgres.d.ts +1 -1
  5. package/dist/dialect/postgres.js +15 -8
  6. package/dist/dialect/standardsql.js +1 -0
  7. package/dist/index.d.ts +4 -4
  8. package/dist/index.js +2 -2
  9. package/dist/lang/ast/apply-expr.js +2 -2
  10. package/dist/lang/ast/ast-expr.js +2 -12
  11. package/dist/lang/ast/ast-main.d.ts +2 -2
  12. package/dist/lang/ast/ast-main.js +2 -1
  13. package/dist/lang/field-space.d.ts +9 -7
  14. package/dist/lang/field-space.js +10 -8
  15. package/dist/lang/lib/Malloy/MalloyLexer.d.ts +108 -106
  16. package/dist/lang/lib/Malloy/MalloyLexer.js +1019 -1006
  17. package/dist/lang/lib/Malloy/MalloyParser.d.ts +581 -590
  18. package/dist/lang/lib/Malloy/MalloyParser.js +1141 -1202
  19. package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +2015 -0
  20. package/dist/lang/lib/Malloy/MalloyParserListener.js +4 -0
  21. package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +1269 -0
  22. package/dist/lang/lib/Malloy/MalloyParserVisitor.js +4 -0
  23. package/dist/lang/parse-to-ast.d.ts +3 -4
  24. package/dist/lang/parse-to-ast.js +1 -1
  25. package/dist/lang/parse-tree-walkers/document-completion-walker.js +2 -0
  26. package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +2 -2
  27. package/dist/lang/test/field-symbols.spec.js +2 -2
  28. package/dist/lang/test/parse.spec.js +15 -0
  29. package/dist/lang/test/test-translator.js +1 -1
  30. package/dist/malloy.d.ts +1 -1
  31. package/dist/malloy.js +11 -5
  32. package/dist/md5.d.ts +1 -0
  33. package/dist/md5.js +30 -0
  34. package/dist/model/malloy_query.js +4 -6
  35. package/dist/model/malloy_types.d.ts +3 -1
  36. package/package.json +9 -14
  37. package/dist/dialect/dialect-map.d.ts +0 -3
  38. package/dist/dialect/dialect-map.js +0 -33
  39. package/dist/model/malloy-query.d.ts +0 -313
  40. package/dist/model/malloy-query.js +0 -2603
  41. package/dist/model/malloy-types.d.ts +0 -404
  42. package/dist/model/malloy-types.js +0 -242
  43. package/dist/model/sql-block.d.ts +0 -11
  44. package/dist/model/sql-block.js +0 -38
  45. package/dist/runtime-types.d.ts +0 -116
  46. package/dist/runtime-types.js +0 -40
@@ -27,112 +27,113 @@ export declare class MalloyLexer extends Lexer {
27
27
  static readonly SAMPLE = 22;
28
28
  static readonly SOURCE = 23;
29
29
  static readonly SQL = 24;
30
- static readonly TOP = 25;
31
- static readonly WHERE = 26;
32
- static readonly ALL = 27;
33
- static readonly AND = 28;
34
- static readonly AS = 29;
35
- static readonly ASC = 30;
36
- static readonly AVG = 31;
37
- static readonly BOOLEAN = 32;
38
- static readonly BY = 33;
39
- static readonly CASE = 34;
40
- static readonly CAST = 35;
41
- static readonly CONDITION = 36;
42
- static readonly COUNT = 37;
43
- static readonly DATE = 38;
44
- static readonly DAY = 39;
45
- static readonly DESC = 40;
46
- static readonly DISTINCT = 41;
47
- static readonly ELSE = 42;
48
- static readonly END = 43;
49
- static readonly EXCLUDE = 44;
50
- static readonly FALSE = 45;
51
- static readonly FOR = 46;
52
- static readonly FROM = 47;
53
- static readonly FROM_SQL = 48;
54
- static readonly HAS = 49;
55
- static readonly HOUR = 50;
56
- static readonly IMPORT = 51;
57
- static readonly IS = 52;
58
- static readonly JSON = 53;
59
- static readonly LAST = 54;
60
- static readonly MAX = 55;
61
- static readonly MIN = 56;
62
- static readonly MINUTE = 57;
63
- static readonly MONTH = 58;
64
- static readonly NOT = 59;
65
- static readonly NOW = 60;
66
- static readonly NULL = 61;
67
- static readonly NUMBER = 62;
68
- static readonly ON = 63;
69
- static readonly OR = 64;
70
- static readonly PICK = 65;
71
- static readonly QMARK = 66;
72
- static readonly QUARTER = 67;
73
- static readonly SECOND = 68;
74
- static readonly STRING = 69;
75
- static readonly SUM = 70;
76
- static readonly TABLE = 71;
77
- static readonly THEN = 72;
78
- static readonly THIS = 73;
79
- static readonly TIMESTAMP = 74;
80
- static readonly TO = 75;
81
- static readonly TRUE = 76;
82
- static readonly TURTLE = 77;
83
- static readonly WEEK = 78;
84
- static readonly WHEN = 79;
85
- static readonly WITH = 80;
86
- static readonly YEAR = 81;
87
- static readonly UNGROUPED = 82;
88
- static readonly STRING_ESCAPE = 83;
89
- static readonly HACKY_REGEX = 84;
90
- static readonly STRING_LITERAL = 85;
91
- static readonly AMPER = 86;
92
- static readonly ARROW = 87;
93
- static readonly FAT_ARROW = 88;
94
- static readonly OPAREN = 89;
95
- static readonly CPAREN = 90;
96
- static readonly OBRACK = 91;
97
- static readonly CBRACK = 92;
98
- static readonly OCURLY = 93;
99
- static readonly CCURLY = 94;
100
- static readonly DOUBLECOLON = 95;
101
- static readonly COLON = 96;
102
- static readonly COMMA = 97;
103
- static readonly DOT = 98;
104
- static readonly LT = 99;
105
- static readonly GT = 100;
106
- static readonly EQ = 101;
107
- static readonly NE = 102;
108
- static readonly LTE = 103;
109
- static readonly GTE = 104;
110
- static readonly PLUS = 105;
111
- static readonly MINUS = 106;
112
- static readonly STAR = 107;
113
- static readonly STARSTAR = 108;
114
- static readonly SLASH = 109;
115
- static readonly BAR = 110;
116
- static readonly SEMI = 111;
117
- static readonly NOT_MATCH = 112;
118
- static readonly MATCH = 113;
119
- static readonly LITERAL_TIMESTAMP = 114;
120
- static readonly LITERAL_DAY = 115;
121
- static readonly LITERAL_QUARTER = 116;
122
- static readonly LITERAL_MONTH = 117;
123
- static readonly LITERAL_WEEK = 118;
124
- static readonly LITERAL_YEAR = 119;
125
- static readonly IDENTIFIER = 120;
126
- static readonly PERCENT_LITERAL = 121;
127
- static readonly INTEGER_LITERAL = 122;
128
- static readonly NUMERIC_LITERAL = 123;
129
- static readonly OBJECT_NAME_LITERAL = 124;
130
- static readonly BLOCK_COMMENT = 125;
131
- static readonly COMMENT_TO_EOL = 126;
132
- static readonly WHITE_SPACE = 127;
133
- static readonly SQL_STRING = 128;
134
- static readonly UNWATED_CHARS_TRAILING_NUMBERS = 129;
135
- static readonly UNEXPECTED_CHAR = 130;
30
+ static readonly FANCYSQL = 25;
31
+ static readonly TOP = 26;
32
+ static readonly WHERE = 27;
33
+ static readonly ALL = 28;
34
+ static readonly AND = 29;
35
+ static readonly AS = 30;
36
+ static readonly ASC = 31;
37
+ static readonly AVG = 32;
38
+ static readonly BOOLEAN = 33;
39
+ static readonly BY = 34;
40
+ static readonly CASE = 35;
41
+ static readonly CAST = 36;
42
+ static readonly CONDITION = 37;
43
+ static readonly COUNT = 38;
44
+ static readonly DATE = 39;
45
+ static readonly DAY = 40;
46
+ static readonly DESC = 41;
47
+ static readonly DISTINCT = 42;
48
+ static readonly ELSE = 43;
49
+ static readonly END = 44;
50
+ static readonly EXCLUDE = 45;
51
+ static readonly FALSE = 46;
52
+ static readonly FOR = 47;
53
+ static readonly FROM = 48;
54
+ static readonly FROM_SQL = 49;
55
+ static readonly HAS = 50;
56
+ static readonly HOUR = 51;
57
+ static readonly IMPORT = 52;
58
+ static readonly IS = 53;
59
+ static readonly JSON = 54;
60
+ static readonly LAST = 55;
61
+ static readonly MAX = 56;
62
+ static readonly MIN = 57;
63
+ static readonly MINUTE = 58;
64
+ static readonly MONTH = 59;
65
+ static readonly NOT = 60;
66
+ static readonly NOW = 61;
67
+ static readonly NULL = 62;
68
+ static readonly NUMBER = 63;
69
+ static readonly ON = 64;
70
+ static readonly OR = 65;
71
+ static readonly PICK = 66;
72
+ static readonly QMARK = 67;
73
+ static readonly QUARTER = 68;
74
+ static readonly SECOND = 69;
75
+ static readonly STRING = 70;
76
+ static readonly SUM = 71;
77
+ static readonly TABLE = 72;
78
+ static readonly THEN = 73;
79
+ static readonly THIS = 74;
80
+ static readonly TIMESTAMP = 75;
81
+ static readonly TO = 76;
82
+ static readonly TRUE = 77;
83
+ static readonly TURTLE = 78;
84
+ static readonly WEEK = 79;
85
+ static readonly WHEN = 80;
86
+ static readonly WITH = 81;
87
+ static readonly YEAR = 82;
88
+ static readonly UNGROUPED = 83;
89
+ static readonly STRING_ESCAPE = 84;
90
+ static readonly HACKY_REGEX = 85;
91
+ static readonly STRING_LITERAL = 86;
92
+ static readonly AMPER = 87;
93
+ static readonly ARROW = 88;
94
+ static readonly FAT_ARROW = 89;
95
+ static readonly OPAREN = 90;
96
+ static readonly CPAREN = 91;
97
+ static readonly OBRACK = 92;
98
+ static readonly CBRACK = 93;
99
+ static readonly OCURLY = 94;
100
+ static readonly CCURLY = 95;
101
+ static readonly DOUBLECOLON = 96;
102
+ static readonly COLON = 97;
103
+ static readonly COMMA = 98;
104
+ static readonly DOT = 99;
105
+ static readonly LT = 100;
106
+ static readonly GT = 101;
107
+ static readonly EQ = 102;
108
+ static readonly NE = 103;
109
+ static readonly LTE = 104;
110
+ static readonly GTE = 105;
111
+ static readonly PLUS = 106;
112
+ static readonly MINUS = 107;
113
+ static readonly STAR = 108;
114
+ static readonly STARSTAR = 109;
115
+ static readonly SLASH = 110;
116
+ static readonly BAR = 111;
117
+ static readonly SEMI = 112;
118
+ static readonly NOT_MATCH = 113;
119
+ static readonly MATCH = 114;
120
+ static readonly LITERAL_TIMESTAMP = 115;
121
+ static readonly LITERAL_DAY = 116;
122
+ static readonly LITERAL_QUARTER = 117;
123
+ static readonly LITERAL_MONTH = 118;
124
+ static readonly LITERAL_WEEK = 119;
125
+ static readonly LITERAL_YEAR = 120;
126
+ static readonly IDENTIFIER = 121;
127
+ static readonly PERCENT_LITERAL = 122;
128
+ static readonly INTEGER_LITERAL = 123;
129
+ static readonly NUMERIC_LITERAL = 124;
130
+ static readonly OBJECT_NAME_LITERAL = 125;
131
+ static readonly BLOCK_COMMENT = 126;
132
+ static readonly COMMENT_TO_EOL = 127;
133
+ static readonly WHITE_SPACE = 128;
134
+ static readonly SQL_STRING = 129;
135
+ static readonly UNWATED_CHARS_TRAILING_NUMBERS = 130;
136
+ static readonly UNEXPECTED_CHAR = 131;
136
137
  static readonly channelNames: string[];
137
138
  static readonly modeNames: string[];
138
139
  static readonly ruleNames: string[];
@@ -150,6 +151,7 @@ export declare class MalloyLexer extends Lexer {
150
151
  private static readonly _serializedATNSegment0;
151
152
  private static readonly _serializedATNSegment1;
152
153
  private static readonly _serializedATNSegment2;
154
+ private static readonly _serializedATNSegment3;
153
155
  static readonly _serializedATN: string;
154
156
  static __ATN: ATN;
155
157
  static get _ATN(): ATN;