@malloydata/malloy 0.0.54 → 0.0.55-dev230707164317
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/expr-string.js +1 -3
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +138 -138
- package/dist/lang/lib/Malloy/MalloyLexer.js +1074 -1068
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +197 -255
- package/dist/lang/lib/Malloy/MalloyParser.js +1617 -2029
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +22 -66
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +14 -42
- package/dist/lang/malloy-to-ast.d.ts +5 -6
- package/dist/lang/malloy-to-ast.js +64 -71
- package/dist/lang/parse-tree-walkers/document-highlight-walker.js +3 -3
- package/dist/lang/parse-tree-walkers/find-external-references.js +1 -1
- package/dist/lang/string-parser.d.ts +11 -0
- package/dist/lang/string-parser.js +105 -0
- package/dist/lang/test/parse.spec.js +4 -1
- package/dist/lang/test/strings.spec.d.ts +1 -0
- package/dist/lang/test/strings.spec.js +60 -0
- package/package.json +1 -1
|
@@ -29,9 +29,7 @@ class ExprString extends expression_def_1.ExpressionDef {
|
|
|
29
29
|
constructor(src) {
|
|
30
30
|
super();
|
|
31
31
|
this.elementType = 'string literal';
|
|
32
|
-
|
|
33
|
-
const val = bareStr.replace(/\\(.)/g, '$1');
|
|
34
|
-
this.value = val;
|
|
32
|
+
this.value = src;
|
|
35
33
|
}
|
|
36
34
|
getExpression(_fs) {
|
|
37
35
|
return {
|
|
@@ -3,144 +3,144 @@ import { CharStream } from "antlr4ts/CharStream";
|
|
|
3
3
|
import { Lexer } from "antlr4ts/Lexer";
|
|
4
4
|
import { Vocabulary } from "antlr4ts/Vocabulary";
|
|
5
5
|
export declare class MalloyLexer extends Lexer {
|
|
6
|
-
static readonly
|
|
7
|
-
static readonly
|
|
8
|
-
static readonly
|
|
9
|
-
static readonly
|
|
10
|
-
static readonly
|
|
11
|
-
static readonly
|
|
12
|
-
static readonly
|
|
13
|
-
static readonly
|
|
14
|
-
static readonly
|
|
15
|
-
static readonly
|
|
16
|
-
static readonly
|
|
17
|
-
static readonly
|
|
18
|
-
static readonly
|
|
19
|
-
static readonly
|
|
20
|
-
static readonly
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly
|
|
34
|
-
static readonly
|
|
35
|
-
static readonly
|
|
36
|
-
static readonly
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
43
|
-
static readonly
|
|
44
|
-
static readonly
|
|
45
|
-
static readonly
|
|
46
|
-
static readonly
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
50
|
-
static readonly
|
|
51
|
-
static readonly
|
|
52
|
-
static readonly
|
|
53
|
-
static readonly
|
|
54
|
-
static readonly
|
|
55
|
-
static readonly
|
|
56
|
-
static readonly
|
|
57
|
-
static readonly
|
|
58
|
-
static readonly
|
|
59
|
-
static readonly
|
|
60
|
-
static readonly
|
|
61
|
-
static readonly
|
|
62
|
-
static readonly
|
|
63
|
-
static readonly
|
|
64
|
-
static readonly
|
|
65
|
-
static readonly
|
|
66
|
-
static readonly
|
|
67
|
-
static readonly
|
|
68
|
-
static readonly
|
|
69
|
-
static readonly
|
|
70
|
-
static readonly
|
|
71
|
-
static readonly
|
|
72
|
-
static readonly
|
|
73
|
-
static readonly
|
|
74
|
-
static readonly
|
|
75
|
-
static readonly
|
|
76
|
-
static readonly
|
|
77
|
-
static readonly
|
|
78
|
-
static readonly
|
|
79
|
-
static readonly
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
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
|
|
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
|
|
6
|
+
static readonly ACCEPT = 1;
|
|
7
|
+
static readonly AGGREGATE = 2;
|
|
8
|
+
static readonly CALCULATE = 3;
|
|
9
|
+
static readonly CALCULATION = 4;
|
|
10
|
+
static readonly CONNECTION = 5;
|
|
11
|
+
static readonly DECLARE = 6;
|
|
12
|
+
static readonly DIMENSION = 7;
|
|
13
|
+
static readonly EXCEPT = 8;
|
|
14
|
+
static readonly EXTENDQ = 9;
|
|
15
|
+
static readonly GROUP_BY = 10;
|
|
16
|
+
static readonly HAVING = 11;
|
|
17
|
+
static readonly INDEX = 12;
|
|
18
|
+
static readonly JOIN_CROSS = 13;
|
|
19
|
+
static readonly JOIN_ONE = 14;
|
|
20
|
+
static readonly JOIN_MANY = 15;
|
|
21
|
+
static readonly LIMIT = 16;
|
|
22
|
+
static readonly MEASURE = 17;
|
|
23
|
+
static readonly NEST = 18;
|
|
24
|
+
static readonly ORDER_BY = 19;
|
|
25
|
+
static readonly PRIMARY_KEY = 20;
|
|
26
|
+
static readonly PROJECT = 21;
|
|
27
|
+
static readonly QUERY = 22;
|
|
28
|
+
static readonly RENAME = 23;
|
|
29
|
+
static readonly RUN = 24;
|
|
30
|
+
static readonly SAMPLE = 25;
|
|
31
|
+
static readonly SELECT = 26;
|
|
32
|
+
static readonly SOURCE = 27;
|
|
33
|
+
static readonly SQLC = 28;
|
|
34
|
+
static readonly TOP = 29;
|
|
35
|
+
static readonly WHERE = 30;
|
|
36
|
+
static readonly TIMEZONE = 31;
|
|
37
|
+
static readonly ALL = 32;
|
|
38
|
+
static readonly AND = 33;
|
|
39
|
+
static readonly AS = 34;
|
|
40
|
+
static readonly ASC = 35;
|
|
41
|
+
static readonly AVG = 36;
|
|
42
|
+
static readonly BOOLEAN = 37;
|
|
43
|
+
static readonly BY = 38;
|
|
44
|
+
static readonly CASE = 39;
|
|
45
|
+
static readonly CAST = 40;
|
|
46
|
+
static readonly CONDITION = 41;
|
|
47
|
+
static readonly COUNT = 42;
|
|
48
|
+
static readonly DATE = 43;
|
|
49
|
+
static readonly DAY = 44;
|
|
50
|
+
static readonly DESC = 45;
|
|
51
|
+
static readonly DISTINCT = 46;
|
|
52
|
+
static readonly ELSE = 47;
|
|
53
|
+
static readonly END = 48;
|
|
54
|
+
static readonly EXCLUDE = 49;
|
|
55
|
+
static readonly FALSE = 50;
|
|
56
|
+
static readonly FOR = 51;
|
|
57
|
+
static readonly FROM = 52;
|
|
58
|
+
static readonly FROM_SQL = 53;
|
|
59
|
+
static readonly HAS = 54;
|
|
60
|
+
static readonly HOUR = 55;
|
|
61
|
+
static readonly IMPORT = 56;
|
|
62
|
+
static readonly IS = 57;
|
|
63
|
+
static readonly JSON = 58;
|
|
64
|
+
static readonly LAST = 59;
|
|
65
|
+
static readonly MAX = 60;
|
|
66
|
+
static readonly MIN = 61;
|
|
67
|
+
static readonly MINUTE = 62;
|
|
68
|
+
static readonly MONTH = 63;
|
|
69
|
+
static readonly NOT = 64;
|
|
70
|
+
static readonly NOW = 65;
|
|
71
|
+
static readonly NULL = 66;
|
|
72
|
+
static readonly NUMBER = 67;
|
|
73
|
+
static readonly ON = 68;
|
|
74
|
+
static readonly OR = 69;
|
|
75
|
+
static readonly PICK = 70;
|
|
76
|
+
static readonly QUARTER = 71;
|
|
77
|
+
static readonly SECOND = 72;
|
|
78
|
+
static readonly STRING = 73;
|
|
79
|
+
static readonly SUM = 74;
|
|
80
|
+
static readonly SQL = 75;
|
|
81
|
+
static readonly TABLE = 76;
|
|
82
|
+
static readonly THEN = 77;
|
|
83
|
+
static readonly THIS = 78;
|
|
84
|
+
static readonly TIMESTAMP = 79;
|
|
85
|
+
static readonly TO = 80;
|
|
86
|
+
static readonly TRUE = 81;
|
|
87
|
+
static readonly TURTLE = 82;
|
|
88
|
+
static readonly WEEK = 83;
|
|
89
|
+
static readonly WHEN = 84;
|
|
90
|
+
static readonly WITH = 85;
|
|
91
|
+
static readonly YEAR = 86;
|
|
92
|
+
static readonly UNGROUPED = 87;
|
|
93
|
+
static readonly STRING_ESCAPE = 88;
|
|
94
|
+
static readonly HACKY_REGEX = 89;
|
|
95
|
+
static readonly SQ_STRING = 90;
|
|
96
|
+
static readonly DQ_STRING = 91;
|
|
97
|
+
static readonly BQ_STRING = 92;
|
|
98
|
+
static readonly DOC_ANNOTATION = 93;
|
|
99
|
+
static readonly ANNOTATION = 94;
|
|
100
|
+
static readonly AMPER = 95;
|
|
101
|
+
static readonly ARROW = 96;
|
|
102
|
+
static readonly FAT_ARROW = 97;
|
|
103
|
+
static readonly OPAREN = 98;
|
|
104
|
+
static readonly CPAREN = 99;
|
|
105
|
+
static readonly OBRACK = 100;
|
|
106
|
+
static readonly CBRACK = 101;
|
|
107
|
+
static readonly OCURLY = 102;
|
|
108
|
+
static readonly CCURLY = 103;
|
|
109
|
+
static readonly DOUBLECOLON = 104;
|
|
110
|
+
static readonly TRIPLECOLON = 105;
|
|
111
|
+
static readonly EXCLAM = 106;
|
|
112
|
+
static readonly COLON = 107;
|
|
113
|
+
static readonly COMMA = 108;
|
|
114
|
+
static readonly DOT = 109;
|
|
115
|
+
static readonly LT = 110;
|
|
116
|
+
static readonly GT = 111;
|
|
117
|
+
static readonly EQ = 112;
|
|
118
|
+
static readonly NE = 113;
|
|
119
|
+
static readonly LTE = 114;
|
|
120
|
+
static readonly GTE = 115;
|
|
121
|
+
static readonly PLUS = 116;
|
|
122
|
+
static readonly MINUS = 117;
|
|
123
|
+
static readonly STAR = 118;
|
|
124
|
+
static readonly STARSTAR = 119;
|
|
125
|
+
static readonly SLASH = 120;
|
|
126
|
+
static readonly BAR = 121;
|
|
127
|
+
static readonly SEMI = 122;
|
|
128
|
+
static readonly NOT_MATCH = 123;
|
|
129
|
+
static readonly MATCH = 124;
|
|
130
|
+
static readonly PERCENT = 125;
|
|
131
|
+
static readonly DOUBLE_QMARK = 126;
|
|
132
|
+
static readonly QMARK = 127;
|
|
133
|
+
static readonly LITERAL_TIMESTAMP = 128;
|
|
134
|
+
static readonly LITERAL_HOUR = 129;
|
|
135
|
+
static readonly LITERAL_DAY = 130;
|
|
136
|
+
static readonly LITERAL_QUARTER = 131;
|
|
137
|
+
static readonly LITERAL_MONTH = 132;
|
|
138
|
+
static readonly LITERAL_WEEK = 133;
|
|
139
|
+
static readonly LITERAL_YEAR = 134;
|
|
140
|
+
static readonly IDENTIFIER = 135;
|
|
141
|
+
static readonly PERCENT_LITERAL = 136;
|
|
142
|
+
static readonly INTEGER_LITERAL = 137;
|
|
143
|
+
static readonly NUMERIC_LITERAL = 138;
|
|
144
144
|
static readonly BLOCK_COMMENT = 139;
|
|
145
145
|
static readonly COMMENT_TO_EOL = 140;
|
|
146
146
|
static readonly WHITE_SPACE = 141;
|