@malloydata/malloy 0.0.237-dev250225015031 → 0.0.237-dev250225213433
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/annotation.d.ts +15 -0
- package/dist/annotation.js +86 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -3
- package/dist/lang/ast/types/annotation-elements.d.ts +1 -1
- package/dist/lang/ast/types/annotation-elements.js +2 -2
- package/dist/lang/ast/types/malloy-element.d.ts +1 -1
- package/dist/lang/ast/types/malloy-element.js +2 -2
- package/dist/lang/malloy-to-ast.d.ts +1 -1
- package/dist/lang/malloy-to-ast.js +2 -2
- package/dist/lang/parse-malloy.d.ts +1 -1
- package/dist/lang/parse-malloy.js +4 -3
- package/dist/lang/parse-utils.d.ts +0 -11
- package/dist/lang/parse-utils.js +4 -82
- package/dist/lang/syntax-errors/custom-error-messages.d.ts +4 -2
- package/dist/lang/syntax-errors/custom-error-messages.js +75 -16
- package/dist/lang/syntax-errors/malloy-error-strategy.d.ts +4 -6
- package/dist/lang/syntax-errors/malloy-error-strategy.js +3 -22
- package/dist/lang/syntax-errors/malloy-parser-error-listener.d.ts +1 -1
- package/dist/lang/syntax-errors/malloy-parser-error-listener.js +107 -10
- package/dist/lang/test/literals.spec.js +0 -34
- package/dist/lang/test/syntax-errors.spec.js +113 -59
- package/dist/malloy.d.ts +13 -8
- package/dist/malloy.js +23 -23
- package/dist/model/malloy_query.d.ts +3 -1
- package/dist/model/malloy_query.js +18 -3
- package/dist/model/materialization/utils.js +2 -2
- package/dist/to_stable.d.ts +3 -0
- package/dist/to_stable.js +170 -0
- package/package.json +3 -1
- package/dist/lang/lib/Malloy/MalloyTagLexer.d.ts +0 -42
- package/dist/lang/lib/Malloy/MalloyTagLexer.js +0 -385
- package/dist/lang/lib/Malloy/MalloyTagParser.d.ts +0 -180
- package/dist/lang/lib/Malloy/MalloyTagParser.js +0 -1051
- package/dist/lang/lib/Malloy/MalloyTagVisitor.d.ts +0 -120
- package/dist/lang/lib/Malloy/MalloyTagVisitor.js +0 -4
- package/dist/tags.d.ts +0 -72
- package/dist/tags.js +0 -512
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { ATN } from "antlr4ts/atn/ATN";
|
|
2
|
-
import { FailedPredicateException } from "antlr4ts/FailedPredicateException";
|
|
3
|
-
import { Parser } from "antlr4ts/Parser";
|
|
4
|
-
import { ParserRuleContext } from "antlr4ts/ParserRuleContext";
|
|
5
|
-
import { TerminalNode } from "antlr4ts/tree/TerminalNode";
|
|
6
|
-
import { TokenStream } from "antlr4ts/TokenStream";
|
|
7
|
-
import { Vocabulary } from "antlr4ts/Vocabulary";
|
|
8
|
-
import { MalloyTagVisitor } from "./MalloyTagVisitor";
|
|
9
|
-
export declare class MalloyTagParser extends Parser {
|
|
10
|
-
static readonly MINUS_DOTTY = 1;
|
|
11
|
-
static readonly DOTTY = 2;
|
|
12
|
-
static readonly DOT = 3;
|
|
13
|
-
static readonly MINUS = 4;
|
|
14
|
-
static readonly EQ = 5;
|
|
15
|
-
static readonly RF_BEG = 6;
|
|
16
|
-
static readonly RF_END = 7;
|
|
17
|
-
static readonly PR_BEG = 8;
|
|
18
|
-
static readonly PR_END = 9;
|
|
19
|
-
static readonly AR_BEG = 10;
|
|
20
|
-
static readonly COMMA = 11;
|
|
21
|
-
static readonly AR_END = 12;
|
|
22
|
-
static readonly SQ_STRING = 13;
|
|
23
|
-
static readonly DQ_STRING = 14;
|
|
24
|
-
static readonly BQ_STRING = 15;
|
|
25
|
-
static readonly NUMERIC_LITERAL = 16;
|
|
26
|
-
static readonly BARE_STRING = 17;
|
|
27
|
-
static readonly COMMENT = 18;
|
|
28
|
-
static readonly WHITE_SPACE = 19;
|
|
29
|
-
static readonly UNEXPECTED_CHAR = 20;
|
|
30
|
-
static readonly RULE_tagLine = 0;
|
|
31
|
-
static readonly RULE_tagSpec = 1;
|
|
32
|
-
static readonly RULE_string = 2;
|
|
33
|
-
static readonly RULE_identifier = 3;
|
|
34
|
-
static readonly RULE_propName = 4;
|
|
35
|
-
static readonly RULE_eqValue = 5;
|
|
36
|
-
static readonly RULE_arrayElement = 6;
|
|
37
|
-
static readonly RULE_reference = 7;
|
|
38
|
-
static readonly RULE_arrayValue = 8;
|
|
39
|
-
static readonly RULE_properties = 9;
|
|
40
|
-
static readonly ruleNames: string[];
|
|
41
|
-
private static readonly _LITERAL_NAMES;
|
|
42
|
-
private static readonly _SYMBOLIC_NAMES;
|
|
43
|
-
static readonly VOCABULARY: Vocabulary;
|
|
44
|
-
get vocabulary(): Vocabulary;
|
|
45
|
-
get grammarFileName(): string;
|
|
46
|
-
get ruleNames(): string[];
|
|
47
|
-
get serializedATN(): string;
|
|
48
|
-
protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException;
|
|
49
|
-
constructor(input: TokenStream);
|
|
50
|
-
tagLine(): TagLineContext;
|
|
51
|
-
tagSpec(): TagSpecContext;
|
|
52
|
-
string(): StringContext;
|
|
53
|
-
identifier(): IdentifierContext;
|
|
54
|
-
propName(): PropNameContext;
|
|
55
|
-
eqValue(): EqValueContext;
|
|
56
|
-
arrayElement(): ArrayElementContext;
|
|
57
|
-
reference(): ReferenceContext;
|
|
58
|
-
arrayValue(): ArrayValueContext;
|
|
59
|
-
properties(): PropertiesContext;
|
|
60
|
-
static readonly _serializedATN: string;
|
|
61
|
-
static __ATN: ATN;
|
|
62
|
-
static get _ATN(): ATN;
|
|
63
|
-
}
|
|
64
|
-
export declare class TagLineContext extends ParserRuleContext {
|
|
65
|
-
EOF(): TerminalNode;
|
|
66
|
-
tagSpec(): TagSpecContext[];
|
|
67
|
-
tagSpec(i: number): TagSpecContext;
|
|
68
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
69
|
-
get ruleIndex(): number;
|
|
70
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
71
|
-
}
|
|
72
|
-
export declare class TagSpecContext extends ParserRuleContext {
|
|
73
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
74
|
-
get ruleIndex(): number;
|
|
75
|
-
copyFrom(ctx: TagSpecContext): void;
|
|
76
|
-
}
|
|
77
|
-
export declare class TagEqContext extends TagSpecContext {
|
|
78
|
-
propName(): PropNameContext;
|
|
79
|
-
EQ(): TerminalNode;
|
|
80
|
-
eqValue(): EqValueContext;
|
|
81
|
-
properties(): PropertiesContext | undefined;
|
|
82
|
-
constructor(ctx: TagSpecContext);
|
|
83
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
84
|
-
}
|
|
85
|
-
export declare class TagReplacePropertiesContext extends TagSpecContext {
|
|
86
|
-
propName(): PropNameContext;
|
|
87
|
-
EQ(): TerminalNode;
|
|
88
|
-
properties(): PropertiesContext;
|
|
89
|
-
DOTTY(): TerminalNode | undefined;
|
|
90
|
-
constructor(ctx: TagSpecContext);
|
|
91
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
92
|
-
}
|
|
93
|
-
export declare class TagUpdatePropertiesContext extends TagSpecContext {
|
|
94
|
-
propName(): PropNameContext;
|
|
95
|
-
properties(): PropertiesContext;
|
|
96
|
-
constructor(ctx: TagSpecContext);
|
|
97
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
98
|
-
}
|
|
99
|
-
export declare class TagDefContext extends TagSpecContext {
|
|
100
|
-
propName(): PropNameContext;
|
|
101
|
-
MINUS(): TerminalNode | undefined;
|
|
102
|
-
constructor(ctx: TagSpecContext);
|
|
103
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
104
|
-
}
|
|
105
|
-
export declare class TagEmptyContext extends TagSpecContext {
|
|
106
|
-
MINUS_DOTTY(): TerminalNode;
|
|
107
|
-
constructor(ctx: TagSpecContext);
|
|
108
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
109
|
-
}
|
|
110
|
-
export declare class StringContext extends ParserRuleContext {
|
|
111
|
-
SQ_STRING(): TerminalNode | undefined;
|
|
112
|
-
DQ_STRING(): TerminalNode | undefined;
|
|
113
|
-
BARE_STRING(): TerminalNode | undefined;
|
|
114
|
-
NUMERIC_LITERAL(): TerminalNode | undefined;
|
|
115
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
116
|
-
get ruleIndex(): number;
|
|
117
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
118
|
-
}
|
|
119
|
-
export declare class IdentifierContext extends ParserRuleContext {
|
|
120
|
-
BQ_STRING(): TerminalNode | undefined;
|
|
121
|
-
BARE_STRING(): TerminalNode | undefined;
|
|
122
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
123
|
-
get ruleIndex(): number;
|
|
124
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
125
|
-
}
|
|
126
|
-
export declare class PropNameContext extends ParserRuleContext {
|
|
127
|
-
identifier(): IdentifierContext[];
|
|
128
|
-
identifier(i: number): IdentifierContext;
|
|
129
|
-
DOT(): TerminalNode[];
|
|
130
|
-
DOT(i: number): TerminalNode;
|
|
131
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
132
|
-
get ruleIndex(): number;
|
|
133
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
134
|
-
}
|
|
135
|
-
export declare class EqValueContext extends ParserRuleContext {
|
|
136
|
-
string(): StringContext | undefined;
|
|
137
|
-
arrayValue(): ArrayValueContext | undefined;
|
|
138
|
-
reference(): ReferenceContext | undefined;
|
|
139
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
140
|
-
get ruleIndex(): number;
|
|
141
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
142
|
-
}
|
|
143
|
-
export declare class ArrayElementContext extends ParserRuleContext {
|
|
144
|
-
string(): StringContext | undefined;
|
|
145
|
-
properties(): PropertiesContext | undefined;
|
|
146
|
-
arrayValue(): ArrayValueContext | undefined;
|
|
147
|
-
reference(): ReferenceContext | undefined;
|
|
148
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
149
|
-
get ruleIndex(): number;
|
|
150
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
151
|
-
}
|
|
152
|
-
export declare class ReferenceContext extends ParserRuleContext {
|
|
153
|
-
RF_BEG(): TerminalNode;
|
|
154
|
-
propName(): PropNameContext;
|
|
155
|
-
RF_END(): TerminalNode;
|
|
156
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
157
|
-
get ruleIndex(): number;
|
|
158
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
159
|
-
}
|
|
160
|
-
export declare class ArrayValueContext extends ParserRuleContext {
|
|
161
|
-
AR_BEG(): TerminalNode;
|
|
162
|
-
arrayElement(): ArrayElementContext[];
|
|
163
|
-
arrayElement(i: number): ArrayElementContext;
|
|
164
|
-
AR_END(): TerminalNode;
|
|
165
|
-
COMMA(): TerminalNode[];
|
|
166
|
-
COMMA(i: number): TerminalNode;
|
|
167
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
168
|
-
get ruleIndex(): number;
|
|
169
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
170
|
-
}
|
|
171
|
-
export declare class PropertiesContext extends ParserRuleContext {
|
|
172
|
-
PR_BEG(): TerminalNode;
|
|
173
|
-
PR_END(): TerminalNode;
|
|
174
|
-
DOTTY(): TerminalNode | undefined;
|
|
175
|
-
tagSpec(): TagSpecContext[];
|
|
176
|
-
tagSpec(i: number): TagSpecContext;
|
|
177
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
178
|
-
get ruleIndex(): number;
|
|
179
|
-
accept<Result>(visitor: MalloyTagVisitor<Result>): Result;
|
|
180
|
-
}
|