@hamelin.sh/compiler 0.1.36 → 0.2.2-prerelease.20250819T010536

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 (3) hide show
  1. package/dist/main.d.ts +115 -165
  2. package/dist/main.js +3337 -3594
  3. package/package.json +1 -1
package/dist/main.d.ts CHANGED
@@ -3,61 +3,20 @@ import { AbstractParseTreeVisitor, Token, ParseTreeListener, TerminalNode, Error
3
3
 
4
4
  /* tslint:disable */
5
5
  /* eslint-disable */
6
- type CompileResult = { Ok: Translation } | { Err: ContextualTranslationErrors };
6
+ type CompileQueryResult = { Ok: QueryTranslation } | { Err: ContextualTranslationErrors };
7
7
 
8
- type StatementDatasetsResult = { Ok: string[] } | { Err: ContextualTranslationErrors };
9
-
10
- type HamelinType = "binary" | "boolean" | "interval" | "calendar_interval" | "int" | "double" | "rows" | "string" | "timestamp" | "unknown" | { decimal: { precision: number; scale: number } } | { array: { element_type: HamelinType } } | { map: { key_type: HamelinType; value_type: HamelinType } } | { tuple: { elements: HamelinType[] } } | "variant" | { range: { of: HamelinType } } | { struct: Column[] };
11
-
12
- interface Column {
13
- name: string;
14
- type: HamelinType;
15
- }
16
-
17
- type Catalog = Record<string, Column[]>;
8
+ type QueryDatasetsResult = { Ok: string[] } | { Err: ContextualTranslationErrors };
18
9
 
19
10
  interface FunctionDescription {
20
11
  name: string;
21
12
  parameters: string;
22
13
  }
23
14
 
24
- interface ContextualTranslationErrors {
25
- hamelin: string;
26
- errors: ContextualTranslationError[];
27
- }
28
-
29
- type TranslationErrors = TranslationError[];
30
-
31
- interface Context {
32
- interval: { start: number; end: number };
33
- message: string;
34
- }
35
-
36
- interface ContextualTranslationError {
37
- error: TranslationError;
38
- pretty: string;
39
- }
40
-
41
- interface TranslationError {
42
- area: LanguageArea | undefined;
43
- stage: Stage;
44
- level: Level;
45
- primary: Context;
46
- supporting: Context[] | undefined;
47
- source_desc: string | undefined;
48
- }
49
-
50
- type Stage = "Translation" | "Parsing" | "SemanticAnalysis";
51
-
52
- type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Parsing";
53
-
54
- type Level = "Error" | "Warning" | "Info";
55
-
56
15
  interface ContextualResult {
57
16
  hamelin: string;
58
17
  errors: ContextualTranslationError[];
59
18
  completions: ContextualCompletion | undefined;
60
- translation: Translation | undefined;
19
+ translation: QueryTranslation | undefined;
61
20
  }
62
21
 
63
22
  interface ContextualCompletion {
@@ -106,6 +65,57 @@ interface Translation {
106
65
  columns: Column[];
107
66
  }
108
67
 
68
+ interface DMLTranslation {
69
+ translation: Translation;
70
+ }
71
+
72
+ interface QueryTranslation {
73
+ translation: Translation;
74
+ }
75
+
76
+ type StatementTranslation = { Query: QueryTranslation } | { DML: DMLTranslation };
77
+
78
+ interface ContextualTranslationErrors {
79
+ hamelin: string;
80
+ errors: ContextualTranslationError[];
81
+ }
82
+
83
+ type TranslationErrors = TranslationError[];
84
+
85
+ interface Context {
86
+ interval: { start: number; end: number };
87
+ message: string;
88
+ }
89
+
90
+ interface ContextualTranslationError {
91
+ error: TranslationError;
92
+ pretty: string;
93
+ }
94
+
95
+ interface TranslationError {
96
+ area: LanguageArea | undefined;
97
+ stage: Stage;
98
+ level: Level;
99
+ primary: Context;
100
+ supporting: Context[] | undefined;
101
+ source_desc: string | undefined;
102
+ }
103
+
104
+ type Stage = "Translation" | "Parsing" | "SemanticAnalysis";
105
+
106
+ type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Parsing";
107
+
108
+ type Level = "Error" | "Warning" | "Info";
109
+
110
+ type HamelinType = "binary" | "boolean" | "interval" | "calendar_interval" | "int" | "double" | "rows" | "string" | "timestamp" | "unknown" | { decimal: { precision: number; scale: number } } | { array: { element_type: HamelinType } } | { map: { key_type: HamelinType; value_type: HamelinType } } | { tuple: { elements: HamelinType[] } } | "variant" | { range: { of: HamelinType } } | { struct: Column[] };
111
+
112
+ interface Column {
113
+ name: string;
114
+ type: HamelinType;
115
+ }
116
+
117
+ type Catalog = Record<string, Column[]>;
118
+
109
119
  declare class CatalogProvider {
110
120
  private constructor();
111
121
  free(): void;
@@ -118,9 +128,9 @@ declare class Compiler {
118
128
  set_catalog_provider(provider: CatalogProvider): void;
119
129
  set_time_range(start?: Date | null, end?: Date | null): void;
120
130
  set_time_range_expression(expression: string): ContextualTranslationErrors | undefined;
121
- compile_statement(query: string): CompileResult;
122
- compile_statement_at(query: string, at?: number | null): ContextualResult;
123
- get_statement_datasets(query: string): StatementDatasetsResult;
131
+ compile_query(query: string): CompileQueryResult;
132
+ compile_query_at(query: string, at?: number | null): ContextualResult;
133
+ get_statement_datasets(query: string): QueryDatasetsResult;
124
134
  }
125
135
 
126
136
  type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
@@ -135,8 +145,8 @@ interface InitOutput {
135
145
  readonly compiler_set_catalog_provider: (a: number, b: number) => void;
136
146
  readonly compiler_set_time_range: (a: number, b: number, c: number) => void;
137
147
  readonly compiler_set_time_range_expression: (a: number, b: number, c: number) => any;
138
- readonly compiler_compile_statement: (a: number, b: number, c: number) => any;
139
- readonly compiler_compile_statement_at: (a: number, b: number, c: number, d: number) => any;
148
+ readonly compiler_compile_query: (a: number, b: number, c: number) => any;
149
+ readonly compiler_compile_query_at: (a: number, b: number, c: number, d: number) => any;
140
150
  readonly compiler_get_statement_datasets: (a: number, b: number, c: number) => any;
141
151
  readonly __wbindgen_malloc: (a: number, b: number) => number;
142
152
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -160,12 +170,12 @@ type SyncInitInput = BufferSource | WebAssembly.Module;
160
170
  */
161
171
  declare function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
162
172
 
163
- declare const compileHamelin: (catalog: Catalog, hamelinInput: string, timeRange?: string) => Promise<CompileResult>;
173
+ declare const compileHamelin: (catalog: Catalog, hamelinInput: string, timeRange?: string) => Promise<CompileQueryResult>;
164
174
  declare const createCompiler: (catalog: Catalog) => Promise<Compiler>;
165
175
 
166
176
  declare const getFunctionDescriptions: () => Promise<FunctionDescription[]>;
167
177
 
168
- declare const getDatasetsFromQuery: (catalog: Catalog, hamelinInput: string) => Promise<StatementDatasetsResult>;
178
+ declare const getDatasetsFromQuery: (catalog: Catalog, hamelinInput: string) => Promise<QueryDatasetsResult>;
169
179
 
170
180
  declare const sampleCatalog: Catalog;
171
181
 
@@ -301,12 +311,6 @@ declare class HamelinVisitor<Result> extends AbstractParseTreeVisitor<Result> {
301
311
  * @return the visitor result
302
312
  */
303
313
  visitQueryEOF?: (ctx: QueryEOFContext) => Result;
304
- /**
305
- * Visit a parse tree produced by `HamelinParser.statementEOF`.
306
- * @param ctx the parse tree
307
- * @return the visitor result
308
- */
309
- visitStatementEOF?: (ctx: StatementEOFContext) => Result;
310
314
  /**
311
315
  * Visit a parse tree produced by `HamelinParser.commandEOF`.
312
316
  * @param ctx the parse tree
@@ -331,20 +335,6 @@ declare class HamelinVisitor<Result> extends AbstractParseTreeVisitor<Result> {
331
335
  * @return the visitor result
332
336
  */
333
337
  visitSimpleIdentifierEOF?: (ctx: SimpleIdentifierEOFContext) => Result;
334
- /**
335
- * Visit a parse tree produced by the `queryStatement`
336
- * labeled alternative in `HamelinParser.statement`.
337
- * @param ctx the parse tree
338
- * @return the visitor result
339
- */
340
- visitQueryStatement?: (ctx: QueryStatementContext) => Result;
341
- /**
342
- * Visit a parse tree produced by the `expressionStatement`
343
- * labeled alternative in `HamelinParser.statement`.
344
- * @param ctx the parse tree
345
- * @return the visitor result
346
- */
347
- visitExpressionStatement?: (ctx: ExpressionStatementContext) => Result;
348
338
  /**
349
339
  * Visit a parse tree produced by the `withQuery`
350
340
  * labeled alternative in `HamelinParser.query`.
@@ -359,6 +349,13 @@ declare class HamelinVisitor<Result> extends AbstractParseTreeVisitor<Result> {
359
349
  * @return the visitor result
360
350
  */
361
351
  visitStandaloneQuery?: (ctx: StandaloneQueryContext) => Result;
352
+ /**
353
+ * Visit a parse tree produced by the `expressionQuery`
354
+ * labeled alternative in `HamelinParser.query`.
355
+ * @param ctx the parse tree
356
+ * @return the visitor result
357
+ */
358
+ visitExpressionQuery?: (ctx: ExpressionQueryContext) => Result;
362
359
  /**
363
360
  * Visit a parse tree produced by the `pipelineAlt`
364
361
  * labeled alternative in `HamelinParser.pipeline`.
@@ -971,35 +968,33 @@ declare class HamelinParser extends antlr.Parser {
971
968
  static readonly BRACKETED_COMMENT = 95;
972
969
  static readonly WS = 96;
973
970
  static readonly RULE_queryEOF = 0;
974
- static readonly RULE_statementEOF = 1;
975
- static readonly RULE_commandEOF = 2;
976
- static readonly RULE_expressionEOF = 3;
977
- static readonly RULE_identifierEOF = 4;
978
- static readonly RULE_simpleIdentifierEOF = 5;
979
- static readonly RULE_statement = 6;
980
- static readonly RULE_query = 7;
981
- static readonly RULE_pipeline = 8;
982
- static readonly RULE_command = 9;
983
- static readonly RULE_assignmentClause = 10;
984
- static readonly RULE_groupClause = 11;
985
- static readonly RULE_assignment = 12;
986
- static readonly RULE_matchDefine = 13;
987
- static readonly RULE_selection = 14;
988
- static readonly RULE_sortExpression = 15;
989
- static readonly RULE_tableAlias = 16;
990
- static readonly RULE_fromClause = 17;
991
- static readonly RULE_expression = 18;
992
- static readonly RULE_hamelintype = 19;
993
- static readonly RULE_pattern = 20;
994
- static readonly RULE_quantifier = 21;
995
- static readonly RULE_columnReference = 22;
996
- static readonly RULE_tableReference = 23;
997
- static readonly RULE_identifier = 24;
998
- static readonly RULE_simpleIdentifier = 25;
999
- static readonly RULE_string = 26;
1000
- static readonly RULE_number = 27;
1001
- static readonly RULE_positionalArgument = 28;
1002
- static readonly RULE_namedArgument = 29;
971
+ static readonly RULE_commandEOF = 1;
972
+ static readonly RULE_expressionEOF = 2;
973
+ static readonly RULE_identifierEOF = 3;
974
+ static readonly RULE_simpleIdentifierEOF = 4;
975
+ static readonly RULE_query = 5;
976
+ static readonly RULE_pipeline = 6;
977
+ static readonly RULE_command = 7;
978
+ static readonly RULE_assignmentClause = 8;
979
+ static readonly RULE_groupClause = 9;
980
+ static readonly RULE_assignment = 10;
981
+ static readonly RULE_matchDefine = 11;
982
+ static readonly RULE_selection = 12;
983
+ static readonly RULE_sortExpression = 13;
984
+ static readonly RULE_tableAlias = 14;
985
+ static readonly RULE_fromClause = 15;
986
+ static readonly RULE_expression = 16;
987
+ static readonly RULE_hamelintype = 17;
988
+ static readonly RULE_pattern = 18;
989
+ static readonly RULE_quantifier = 19;
990
+ static readonly RULE_columnReference = 20;
991
+ static readonly RULE_tableReference = 21;
992
+ static readonly RULE_identifier = 22;
993
+ static readonly RULE_simpleIdentifier = 23;
994
+ static readonly RULE_string = 24;
995
+ static readonly RULE_number = 25;
996
+ static readonly RULE_positionalArgument = 26;
997
+ static readonly RULE_namedArgument = 27;
1003
998
  static readonly literalNames: (string | null)[];
1004
999
  static readonly symbolicNames: (string | null)[];
1005
1000
  static readonly ruleNames: string[];
@@ -1011,12 +1006,10 @@ declare class HamelinParser extends antlr.Parser {
1011
1006
  protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException;
1012
1007
  constructor(input: antlr.TokenStream);
1013
1008
  queryEOF(): QueryEOFContext;
1014
- statementEOF(): StatementEOFContext;
1015
1009
  commandEOF(): CommandEOFContext;
1016
1010
  expressionEOF(): ExpressionEOFContext;
1017
1011
  identifierEOF(): IdentifierEOFContext;
1018
1012
  simpleIdentifierEOF(): SimpleIdentifierEOFContext;
1019
- statement(): StatementContext;
1020
1013
  query(): QueryContext;
1021
1014
  pipeline(): PipelineContext;
1022
1015
  command(): CommandContext;
@@ -1059,15 +1052,6 @@ declare class QueryEOFContext extends antlr.ParserRuleContext {
1059
1052
  exitRule(listener: HamelinListener): void;
1060
1053
  accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
1061
1054
  }
1062
- declare class StatementEOFContext extends antlr.ParserRuleContext {
1063
- constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1064
- statement(): StatementContext;
1065
- EOF(): antlr.TerminalNode;
1066
- get ruleIndex(): number;
1067
- enterRule(listener: HamelinListener): void;
1068
- exitRule(listener: HamelinListener): void;
1069
- accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
1070
- }
1071
1055
  declare class CommandEOFContext extends antlr.ParserRuleContext {
1072
1056
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1073
1057
  command(): CommandContext;
@@ -1104,25 +1088,6 @@ declare class SimpleIdentifierEOFContext extends antlr.ParserRuleContext {
1104
1088
  exitRule(listener: HamelinListener): void;
1105
1089
  accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
1106
1090
  }
1107
- declare class StatementContext extends antlr.ParserRuleContext {
1108
- constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1109
- get ruleIndex(): number;
1110
- copyFrom(ctx: StatementContext): void;
1111
- }
1112
- declare class QueryStatementContext extends StatementContext {
1113
- constructor(ctx: StatementContext);
1114
- query(): QueryContext;
1115
- enterRule(listener: HamelinListener): void;
1116
- exitRule(listener: HamelinListener): void;
1117
- accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
1118
- }
1119
- declare class ExpressionStatementContext extends StatementContext {
1120
- constructor(ctx: StatementContext);
1121
- expression(): ExpressionContext;
1122
- enterRule(listener: HamelinListener): void;
1123
- exitRule(listener: HamelinListener): void;
1124
- accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
1125
- }
1126
1091
  declare class QueryContext extends antlr.ParserRuleContext {
1127
1092
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1128
1093
  get ruleIndex(): number;
@@ -1149,6 +1114,13 @@ declare class StandaloneQueryContext extends QueryContext {
1149
1114
  exitRule(listener: HamelinListener): void;
1150
1115
  accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
1151
1116
  }
1117
+ declare class ExpressionQueryContext extends QueryContext {
1118
+ constructor(ctx: QueryContext);
1119
+ expression(): ExpressionContext;
1120
+ enterRule(listener: HamelinListener): void;
1121
+ exitRule(listener: HamelinListener): void;
1122
+ accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
1123
+ }
1152
1124
  declare class PipelineContext extends antlr.ParserRuleContext {
1153
1125
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
1154
1126
  get ruleIndex(): number;
@@ -2005,16 +1977,6 @@ declare class HamelinListener implements ParseTreeListener {
2005
1977
  * @param ctx the parse tree
2006
1978
  */
2007
1979
  exitQueryEOF?: (ctx: QueryEOFContext) => void;
2008
- /**
2009
- * Enter a parse tree produced by `HamelinParser.statementEOF`.
2010
- * @param ctx the parse tree
2011
- */
2012
- enterStatementEOF?: (ctx: StatementEOFContext) => void;
2013
- /**
2014
- * Exit a parse tree produced by `HamelinParser.statementEOF`.
2015
- * @param ctx the parse tree
2016
- */
2017
- exitStatementEOF?: (ctx: StatementEOFContext) => void;
2018
1980
  /**
2019
1981
  * Enter a parse tree produced by `HamelinParser.commandEOF`.
2020
1982
  * @param ctx the parse tree
@@ -2055,30 +2017,6 @@ declare class HamelinListener implements ParseTreeListener {
2055
2017
  * @param ctx the parse tree
2056
2018
  */
2057
2019
  exitSimpleIdentifierEOF?: (ctx: SimpleIdentifierEOFContext) => void;
2058
- /**
2059
- * Enter a parse tree produced by the `queryStatement`
2060
- * labeled alternative in `HamelinParser.statement`.
2061
- * @param ctx the parse tree
2062
- */
2063
- enterQueryStatement?: (ctx: QueryStatementContext) => void;
2064
- /**
2065
- * Exit a parse tree produced by the `queryStatement`
2066
- * labeled alternative in `HamelinParser.statement`.
2067
- * @param ctx the parse tree
2068
- */
2069
- exitQueryStatement?: (ctx: QueryStatementContext) => void;
2070
- /**
2071
- * Enter a parse tree produced by the `expressionStatement`
2072
- * labeled alternative in `HamelinParser.statement`.
2073
- * @param ctx the parse tree
2074
- */
2075
- enterExpressionStatement?: (ctx: ExpressionStatementContext) => void;
2076
- /**
2077
- * Exit a parse tree produced by the `expressionStatement`
2078
- * labeled alternative in `HamelinParser.statement`.
2079
- * @param ctx the parse tree
2080
- */
2081
- exitExpressionStatement?: (ctx: ExpressionStatementContext) => void;
2082
2020
  /**
2083
2021
  * Enter a parse tree produced by the `withQuery`
2084
2022
  * labeled alternative in `HamelinParser.query`.
@@ -2103,6 +2041,18 @@ declare class HamelinListener implements ParseTreeListener {
2103
2041
  * @param ctx the parse tree
2104
2042
  */
2105
2043
  exitStandaloneQuery?: (ctx: StandaloneQueryContext) => void;
2044
+ /**
2045
+ * Enter a parse tree produced by the `expressionQuery`
2046
+ * labeled alternative in `HamelinParser.query`.
2047
+ * @param ctx the parse tree
2048
+ */
2049
+ enterExpressionQuery?: (ctx: ExpressionQueryContext) => void;
2050
+ /**
2051
+ * Exit a parse tree produced by the `expressionQuery`
2052
+ * labeled alternative in `HamelinParser.query`.
2053
+ * @param ctx the parse tree
2054
+ */
2055
+ exitExpressionQuery?: (ctx: ExpressionQueryContext) => void;
2106
2056
  /**
2107
2057
  * Enter a parse tree produced by the `pipelineAlt`
2108
2058
  * labeled alternative in `HamelinParser.pipeline`.
@@ -2997,4 +2947,4 @@ type QuerySort = {
2997
2947
  */
2998
2948
  declare const getSorts: (hamelinQuery: string) => QuerySort[];
2999
2949
 
3000
- export { AggCommandContext, AnyNumberContext, AppendCommandContext, ArrayLiteralContext, AssignmentClauseContext, AssignmentContext, AtLeastOneContext, BackQuotedIdentifierContext, BasicDoubleQuotedStringLiteralContext, BasicSingleQuotedStringLiteralContext, BinaryLiteralContext, BinaryOperatorContext, BooleanLiteralContext, CastContext, type Catalog, CatalogProvider, type Column, ColumnReferenceAltContext, ColumnReferenceContext, CommandContext, CommandEOFContext, type CompileResult, Compiler, type Completion, type CompletionItem, type CompletionItemKind, type Context, type ContextualCompletion, type ContextualResult, type ContextualTranslationError, type ContextualTranslationErrors, DecimalLiteralContext, DerefContext, DropCommandContext, ExactlyContext, ExplodeCommandContext, ExpressionContext, ExpressionEOFContext, ExpressionStatementContext, FromClauseContext, FromCommandContext, FunctionCallContext, type FunctionDescription, GroupClauseContext, HamelinLexer, HamelinListener, HamelinParser, type HamelinType, HamelinVisitor, HamelintypeContext, IdentifierContext, IdentifierEOFContext, IndexAccessContext, type InitInput, type InitOutput, IntegerLiteralContext, IntervalLiteralContext, JoinCommandContext, type LanguageArea, LetCommandContext, type Level, LimitCommandContext, MatchCommandContext, MatchDefineContext, NamedArgumentContext, NestCommandContext, NestedContext, NullLiteralContext, NumberContext, NumericLiteralContext, PairLiteralContext, ParameterizedTypeContext, ParenthesizedExpressionContext, ParseCommandContext, PatternContext, PipelineAltContext, PipelineContext, PositionalArgumentContext, QuantifiedContext, QuantifierContext, QueryContext, QueryEOFContext, type QuerySort, QueryStatementContext, RowsLiteralContext, ScientificLiteralContext, SelectCommandContext, SelectionContext, SimpleIdentifierContext, SimpleIdentifierEOFContext, SimpleTypeContext, SortCommandContext, SortExpressionContext, type Stage, StandaloneQueryContext, StatementContext, type StatementDatasetsResult, StatementEOFContext, StringContext, StringLiteralContext, StructLiteralContext, StructTypeContext, type SyncInitInput, TableAliasContext, TableReferenceContext, type Translation, type TranslationError, type TranslationErrors, TsTruncContext, TsTruncTimestampLiteralContext, TupleLiteralContext, TupleTypeContext, TypeWithArgumentsContext, UnaryPostfixOperatorContext, UnaryPrefixOperatorContext, UnboundRangeLiteralContext, UnicodeDoubleQuotedStringLiteralContext, UnicodeSingleQuotedStringLiteralContext, UnionCommandContext, UnnestCommandContext, UnquotedIdentifierContext, WhereCommandContext, WindowCommandContext, WithQueryContext, WithinCommandContext, ZeroOrOneContext, compileHamelin, createCompiler, getDatasetsFromQuery, getFunctionDescriptions, getLimits, getSorts, initSync, sampleCatalog };
2950
+ export { AggCommandContext, AnyNumberContext, AppendCommandContext, ArrayLiteralContext, AssignmentClauseContext, AssignmentContext, AtLeastOneContext, BackQuotedIdentifierContext, BasicDoubleQuotedStringLiteralContext, BasicSingleQuotedStringLiteralContext, BinaryLiteralContext, BinaryOperatorContext, BooleanLiteralContext, CastContext, type Catalog, CatalogProvider, type Column, ColumnReferenceAltContext, ColumnReferenceContext, CommandContext, CommandEOFContext, type CompileQueryResult, Compiler, type Completion, type CompletionItem, type CompletionItemKind, type Context, type ContextualCompletion, type ContextualResult, type ContextualTranslationError, type ContextualTranslationErrors, type DMLTranslation, DecimalLiteralContext, DerefContext, DropCommandContext, ExactlyContext, ExplodeCommandContext, ExpressionContext, ExpressionEOFContext, ExpressionQueryContext, FromClauseContext, FromCommandContext, FunctionCallContext, type FunctionDescription, GroupClauseContext, HamelinLexer, HamelinListener, HamelinParser, type HamelinType, HamelinVisitor, HamelintypeContext, IdentifierContext, IdentifierEOFContext, IndexAccessContext, type InitInput, type InitOutput, IntegerLiteralContext, IntervalLiteralContext, JoinCommandContext, type LanguageArea, LetCommandContext, type Level, LimitCommandContext, MatchCommandContext, MatchDefineContext, NamedArgumentContext, NestCommandContext, NestedContext, NullLiteralContext, NumberContext, NumericLiteralContext, PairLiteralContext, ParameterizedTypeContext, ParenthesizedExpressionContext, ParseCommandContext, PatternContext, PipelineAltContext, PipelineContext, PositionalArgumentContext, QuantifiedContext, QuantifierContext, QueryContext, type QueryDatasetsResult, QueryEOFContext, type QuerySort, type QueryTranslation, RowsLiteralContext, ScientificLiteralContext, SelectCommandContext, SelectionContext, SimpleIdentifierContext, SimpleIdentifierEOFContext, SimpleTypeContext, SortCommandContext, SortExpressionContext, type Stage, StandaloneQueryContext, type StatementTranslation, StringContext, StringLiteralContext, StructLiteralContext, StructTypeContext, type SyncInitInput, TableAliasContext, TableReferenceContext, type Translation, type TranslationError, type TranslationErrors, TsTruncContext, TsTruncTimestampLiteralContext, TupleLiteralContext, TupleTypeContext, TypeWithArgumentsContext, UnaryPostfixOperatorContext, UnaryPrefixOperatorContext, UnboundRangeLiteralContext, UnicodeDoubleQuotedStringLiteralContext, UnicodeSingleQuotedStringLiteralContext, UnionCommandContext, UnnestCommandContext, UnquotedIdentifierContext, WhereCommandContext, WindowCommandContext, WithQueryContext, WithinCommandContext, ZeroOrOneContext, compileHamelin, createCompiler, getDatasetsFromQuery, getFunctionDescriptions, getLimits, getSorts, initSync, sampleCatalog };