@malloydata/malloy 0.0.398 → 0.0.400

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 (103) hide show
  1. package/dist/api/annotation-utils.d.ts +36 -0
  2. package/dist/api/annotation-utils.js +76 -0
  3. package/dist/api/core.js +3 -3
  4. package/dist/api/foundation/annotation.d.ts +115 -0
  5. package/dist/{annotation.js → api/foundation/annotation.js} +87 -42
  6. package/dist/api/foundation/compile.js +3 -3
  7. package/dist/api/foundation/core.d.ts +80 -17
  8. package/dist/api/foundation/core.js +135 -43
  9. package/dist/api/foundation/index.d.ts +1 -1
  10. package/dist/api/foundation/index.js +3 -2
  11. package/dist/api/foundation/runtime.js +2 -2
  12. package/dist/{taggable.d.ts → api/foundation/taggable.d.ts} +4 -4
  13. package/dist/api/foundation/types.d.ts +1 -1
  14. package/dist/connection/types.d.ts +3 -2
  15. package/dist/index.d.ts +9 -2
  16. package/dist/index.js +17 -4
  17. package/dist/{prefix.js → lang/annotation-prefix.js} +1 -1
  18. package/dist/lang/ast/expressions/expr-given.js +1 -1
  19. package/dist/lang/ast/field-space/dynamic-space.d.ts +1 -1
  20. package/dist/lang/ast/field-space/dynamic-space.js +2 -2
  21. package/dist/lang/ast/field-space/include-utils.d.ts +3 -3
  22. package/dist/lang/ast/field-space/query-spaces.js +2 -2
  23. package/dist/lang/ast/field-space/reference-field.js +5 -5
  24. package/dist/lang/ast/field-space/refined-space.d.ts +2 -2
  25. package/dist/lang/ast/field-space/refined-space.js +3 -3
  26. package/dist/lang/ast/field-space/rename-space-field.d.ts +2 -2
  27. package/dist/lang/ast/field-space/rename-space-field.js +4 -4
  28. package/dist/lang/ast/field-space/static-space.js +1 -1
  29. package/dist/lang/ast/index.d.ts +1 -0
  30. package/dist/lang/ast/index.js +1 -0
  31. package/dist/lang/ast/query-elements/anonymous-query.d.ts +2 -2
  32. package/dist/lang/ast/query-elements/anonymous-query.js +3 -3
  33. package/dist/lang/ast/query-elements/query-arrow.js +2 -2
  34. package/dist/lang/ast/query-items/field-declaration.d.ts +2 -2
  35. package/dist/lang/ast/query-items/field-declaration.js +1 -1
  36. package/dist/lang/ast/query-items/field-references.d.ts +3 -3
  37. package/dist/lang/ast/query-properties/nest.js +2 -2
  38. package/dist/lang/ast/source-elements/composite-source.d.ts +2 -2
  39. package/dist/lang/ast/source-elements/refined-source.d.ts +2 -2
  40. package/dist/lang/ast/source-elements/sql-source.js +1 -1
  41. package/dist/lang/ast/source-elements/typed-source.js +7 -4
  42. package/dist/lang/ast/source-properties/join.d.ts +2 -2
  43. package/dist/lang/ast/source-properties/join.js +2 -2
  44. package/dist/lang/ast/source-properties/renames.d.ts +2 -2
  45. package/dist/lang/ast/source-properties/user-type-shape.d.ts +2 -2
  46. package/dist/lang/ast/source-properties/user-type-shape.js +7 -7
  47. package/dist/lang/ast/source-properties/view-field-declaration.d.ts +1 -1
  48. package/dist/lang/ast/source-properties/view-field-declaration.js +2 -2
  49. package/dist/lang/ast/source-query-elements/include-item.d.ts +3 -3
  50. package/dist/lang/ast/statements/define-given.d.ts +2 -2
  51. package/dist/lang/ast/statements/define-given.js +2 -2
  52. package/dist/lang/ast/statements/define-query.d.ts +2 -2
  53. package/dist/lang/ast/statements/define-query.js +2 -2
  54. package/dist/lang/ast/statements/define-source.d.ts +2 -2
  55. package/dist/lang/ast/statements/define-source.js +2 -2
  56. package/dist/lang/ast/statements/define-user-type.d.ts +2 -2
  57. package/dist/lang/ast/statements/define-user-type.js +1 -1
  58. package/dist/lang/ast/statements/export-statement.d.ts +12 -0
  59. package/dist/lang/ast/statements/export-statement.js +53 -0
  60. package/dist/lang/ast/statements/import-statement.js +1 -1
  61. package/dist/lang/ast/types/annotation-elements.js +3 -3
  62. package/dist/lang/ast/types/definition-list.d.ts +3 -3
  63. package/dist/lang/ast/types/literal.d.ts +1 -1
  64. package/dist/lang/ast/types/malloy-element.d.ts +5 -4
  65. package/dist/lang/ast/types/malloy-element.js +20 -17
  66. package/dist/lang/ast/types/noteable.d.ts +5 -5
  67. package/dist/lang/ast/types/pipeline-comp.d.ts +2 -2
  68. package/dist/lang/ast/view-elements/reference-view.js +1 -1
  69. package/dist/lang/ast/view-elements/view-refine.js +1 -1
  70. package/dist/lang/composite-source-utils.d.ts +2 -2
  71. package/dist/lang/composite-source-utils.js +6 -6
  72. package/dist/lang/lib/Malloy/MalloyLexer.d.ts +124 -123
  73. package/dist/lang/lib/Malloy/MalloyLexer.js +1418 -1411
  74. package/dist/lang/lib/Malloy/MalloyParser.d.ts +302 -274
  75. package/dist/lang/lib/Malloy/MalloyParser.js +2748 -2557
  76. package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +22 -0
  77. package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +14 -0
  78. package/dist/lang/malloy-to-ast.d.ts +4 -3
  79. package/dist/lang/malloy-to-ast.js +12 -5
  80. package/dist/lang/malloy-to-stable-query.d.ts +2 -2
  81. package/dist/lang/parse-log.d.ts +3 -0
  82. package/dist/lang/parse-malloy.js +6 -6
  83. package/dist/lang/parse-tree-walkers/model-annotation-walker.d.ts +2 -2
  84. package/dist/lang/parse-tree-walkers/model-annotation-walker.js +2 -2
  85. package/dist/lang/prettify/index.js +1 -1
  86. package/dist/lang/prettify/leaf.js +2 -2
  87. package/dist/lang/translate-response.d.ts +2 -2
  88. package/dist/model/filter_compilers.js +1 -1
  89. package/dist/model/malloy_types.d.ts +28 -24
  90. package/dist/model/persist_utils.js +3 -3
  91. package/dist/model/query_model_impl.js +1 -1
  92. package/dist/model/query_node.js +8 -8
  93. package/dist/model/query_query.js +13 -13
  94. package/dist/model/source_def_utils.js +4 -4
  95. package/dist/run_sql_options.d.ts +6 -4
  96. package/dist/to_stable.d.ts +2 -2
  97. package/dist/to_stable.js +7 -7
  98. package/dist/version.d.ts +1 -1
  99. package/dist/version.js +1 -1
  100. package/package.json +4 -4
  101. package/dist/annotation.d.ts +0 -96
  102. /package/dist/{taggable.js → api/foundation/taggable.js} +0 -0
  103. /package/dist/{prefix.d.ts → lang/annotation-prefix.d.ts} +0 -0
@@ -4,4 +4,4 @@ import { LiteralDay, LiteralHour, LiteralMonth, LiteralTimestamp, LiteralYear }
4
4
  import { ExprNumber } from '../expressions/expr-number';
5
5
  import type { ExpressionDef } from './expression-def';
6
6
  export type Literal = LiteralTimestamp | LiteralHour | LiteralMonth | LiteralDay | LiteralYear | ExprNumber | ExprString | Boolean;
7
- export declare function isLiteral(value: ExpressionDef): value is ExprString | ExprNumber | Boolean | LiteralTimestamp | LiteralHour | LiteralDay | LiteralMonth | LiteralYear;
7
+ export declare function isLiteral(value: ExpressionDef): value is ExprString | Boolean | LiteralTimestamp | LiteralHour | LiteralDay | LiteralMonth | LiteralYear | ExprNumber;
@@ -1,4 +1,4 @@
1
- import type { Annotation, DocumentLocation, DocumentReference, Given, ModelDef, ModelAnnotation, NamedModelObject, Query, SourceID, SourceRegistryValue, StructDef } from '../../../model/malloy_types';
1
+ import type { AnnotationsDef, DocumentLocation, DocumentReference, Given, ModelDef, ModelAnnotationsDef, NamedModelObject, Query, SourceID, SourceRegistryValue, StructDef } from '../../../model/malloy_types';
2
2
  import { Tag } from '@malloydata/malloy-tag';
3
3
  import type { LogMessageOptions, MessageLogger, MessageParameterType, MessageCode } from '../../parse-log';
4
4
  import type { MalloyTranslation } from '../../parse-malloy';
@@ -101,7 +101,7 @@ export declare class DocStatementList extends ListOf<DocStatement | DocStatement
101
101
  execCursor: number;
102
102
  readonly isNoteableObj = true;
103
103
  extendNote: typeof extendNoteMethod;
104
- note?: Annotation;
104
+ note?: AnnotationsDef;
105
105
  noteCursor: number;
106
106
  executeList(doc: Document): ModelDataRequest;
107
107
  }
@@ -111,11 +111,12 @@ export declare class Document extends MalloyElement implements NameSpace {
111
111
  documentModel: Map<string, ModelEntry>;
112
112
  documentSrcRegistry: Record<SourceID, SourceRegistryValue>;
113
113
  documentGivens: Map<string, Given>;
114
+ explicitExports: Set<string> | undefined;
114
115
  queryList: Query[];
115
116
  statements: DocStatementList;
116
117
  didInitModel: boolean;
117
118
  modelWasModified: boolean;
118
- annotation: Annotation;
119
+ annotations: AnnotationsDef;
119
120
  experiments: Tag;
120
121
  constructor(statements: (DocStatement | DocStatementList)[]);
121
122
  initModelDef(extendingModelDef: ModelDef | undefined): void;
@@ -125,7 +126,7 @@ export declare class Document extends MalloyElement implements NameSpace {
125
126
  private checkGivenAliasCollisions;
126
127
  private checkQueryGivenSatisfiability;
127
128
  hasAnnotation(): boolean;
128
- currentModelAnnotation(): ModelAnnotation | undefined;
129
+ currentModelAnnotation(): ModelAnnotationsDef | undefined;
129
130
  modelDef(): ModelDef;
130
131
  getEntry(str: string): ModelEntry | undefined;
131
132
  setEntry(str: string, ent: ModelEntry): void;
@@ -121,7 +121,7 @@ class MalloyElement {
121
121
  text: key,
122
122
  definition: {
123
123
  type: result.entry.type,
124
- annotation: result.entry.annotation,
124
+ annotations: result.entry.annotations,
125
125
  location: result.entry.location,
126
126
  },
127
127
  location: reference.location,
@@ -133,7 +133,7 @@ class MalloyElement {
133
133
  text: key,
134
134
  definition: {
135
135
  type: result.entry.type,
136
- annotation: result.entry.annotation,
136
+ annotations: result.entry.annotations,
137
137
  location: result.entry.location,
138
138
  },
139
139
  location: reference.location,
@@ -463,7 +463,7 @@ class Document extends MalloyElement {
463
463
  this.queryList = [];
464
464
  this.didInitModel = false;
465
465
  this.modelWasModified = false;
466
- this.annotation = {};
466
+ this.annotations = {};
467
467
  this.experiments = new malloy_tag_1.Tag({});
468
468
  this.modelAnnotationTodoList = [];
469
469
  this.dialectNameSpaces = new Map();
@@ -477,10 +477,11 @@ class Document extends MalloyElement {
477
477
  this.documentModel = new Map();
478
478
  this.documentSrcRegistry = {};
479
479
  this.documentGivens = new Map();
480
+ this.explicitExports = undefined;
480
481
  this.queryList = [];
481
482
  if (extendingModelDef) {
482
- if (extendingModelDef.annotation) {
483
- this.annotation.inherits = extendingModelDef.annotation;
483
+ if (extendingModelDef.annotations) {
484
+ this.annotations.inherits = extendingModelDef.annotations;
484
485
  }
485
486
  for (const [nm, orig] of Object.entries(extendingModelDef.contents)) {
486
487
  const entry = { ...orig };
@@ -508,14 +509,14 @@ class Document extends MalloyElement {
508
509
  this.checkGivenAliasCollisions();
509
510
  this.checkQueryGivenSatisfiability();
510
511
  for (const q of this.queryList) {
511
- if (q.modelAnnotation === undefined && modelDef.annotation) {
512
- q.modelAnnotation = modelDef.annotation;
512
+ if (q.modelAnnotations === undefined && modelDef.annotations) {
513
+ q.modelAnnotations = modelDef.annotations;
513
514
  }
514
515
  }
515
516
  }
516
- if (modelDef.annotation) {
517
+ if (modelDef.annotations) {
517
518
  for (const sd of this.modelAnnotationTodoList) {
518
- sd.modelAnnotation || (sd.modelAnnotation = modelDef.annotation);
519
+ sd.modelAnnotations || (sd.modelAnnotations = modelDef.annotations);
519
520
  }
520
521
  }
521
522
  const ret = {
@@ -608,12 +609,12 @@ class Document extends MalloyElement {
608
609
  }
609
610
  }
610
611
  hasAnnotation() {
611
- return ((this.annotation.notes && this.annotation.notes.length > 0) ||
612
- this.annotation.inherits !== undefined);
612
+ return ((this.annotations.notes && this.annotations.notes.length > 0) ||
613
+ this.annotations.inherits !== undefined);
613
614
  }
614
615
  currentModelAnnotation() {
615
616
  if (this.hasAnnotation()) {
616
- const ret = { ...this.annotation, id: '' };
617
+ const ret = { ...this.annotations, id: '' };
617
618
  ret.id = annotationID(ret);
618
619
  return ret;
619
620
  }
@@ -621,14 +622,16 @@ class Document extends MalloyElement {
621
622
  modelDef() {
622
623
  const def = (0, utils_1.mkModelDef)('');
623
624
  if (this.hasAnnotation()) {
624
- def.annotation = this.currentModelAnnotation();
625
+ def.annotations = this.currentModelAnnotation();
625
626
  }
627
+ const explicit = this.explicitExports;
628
+ const isExported = (name, modelEntry) => explicit ? explicit.has(name) : modelEntry.exported === true;
626
629
  for (const [name, modelEntry] of this.documentModel) {
627
630
  const entryDef = modelEntry.entry;
628
631
  if ((0, malloy_types_1.isSourceDef)(entryDef) ||
629
632
  entryDef.type === 'query' ||
630
633
  entryDef.type === 'userType') {
631
- if (modelEntry.exported) {
634
+ if (isExported(name, modelEntry)) {
632
635
  def.exports.push(name);
633
636
  }
634
637
  if (entryDef.type === 'userType') {
@@ -636,14 +639,14 @@ class Document extends MalloyElement {
636
639
  }
637
640
  else {
638
641
  const newEntry = { ...entryDef };
639
- if (newEntry.modelAnnotation === undefined && def.annotation) {
640
- newEntry.modelAnnotation = def.annotation;
642
+ if (newEntry.modelAnnotations === undefined && def.annotations) {
643
+ newEntry.modelAnnotations = def.annotations;
641
644
  }
642
645
  def.contents[name] = newEntry;
643
646
  }
644
647
  }
645
648
  else if (entryDef.type === 'given') {
646
- if (modelEntry.exported) {
649
+ if (isExported(name, modelEntry)) {
647
650
  def.exports.push(name);
648
651
  }
649
652
  def.contents[name] = { ...entryDef };
@@ -1,12 +1,12 @@
1
- import type { Annotation } from '../../../model/malloy_types';
1
+ import type { AnnotationsDef } from '../../../model/malloy_types';
2
2
  /**
3
3
  * An object which can receive annotations is "Noteable"
4
4
  */
5
5
  export interface Noteable {
6
6
  isNoteableObj: true;
7
- note?: Annotation;
8
- extendNote(ext: Partial<Annotation>): void;
7
+ note?: AnnotationsDef;
8
+ extendNote(ext: Partial<AnnotationsDef>): void;
9
9
  }
10
10
  export declare function isNoteable(el: unknown): el is Noteable;
11
- export declare function extendNoteMethod(this: Noteable, ext: Partial<Annotation>): void;
12
- export declare function extendNoteHelper(to: Noteable, ext: Partial<Annotation>): void;
11
+ export declare function extendNoteMethod(this: Noteable, ext: Partial<AnnotationsDef>): void;
12
+ export declare function extendNoteHelper(to: Noteable, ext: Partial<AnnotationsDef>): void;
@@ -1,7 +1,7 @@
1
- import type { Annotation, PipeSegment, SourceDef } from '../../../model/malloy_types';
1
+ import type { AnnotationsDef, PipeSegment, SourceDef } from '../../../model/malloy_types';
2
2
  export interface PipelineComp {
3
3
  outputStruct: SourceDef;
4
4
  pipeline: PipeSegment[];
5
- annotation?: Annotation;
5
+ annotations?: AnnotationsDef;
6
6
  name?: string;
7
7
  }
@@ -123,7 +123,7 @@ class ReferenceView extends view_1.View {
123
123
  return {
124
124
  pipeline,
125
125
  name: fieldDef.name,
126
- annotation: fieldDef.annotation,
126
+ annotations: fieldDef.annotations,
127
127
  outputStruct: pipeline[pipeline.length - 1].outputStruct,
128
128
  };
129
129
  }
@@ -44,7 +44,7 @@ class ViewRefine extends view_1.View {
44
44
  const resultPipe = this.refinement.refine(fs, query.pipeline, isNestIn);
45
45
  return {
46
46
  pipeline: resultPipe,
47
- annotation: query.annotation,
47
+ annotations: query.annotations,
48
48
  outputStruct: resultPipe.length > 0
49
49
  ? resultPipe[resultPipe.length - 1].outputStruct
50
50
  : error_factory_1.ErrorFactory.structDef,
@@ -1,5 +1,5 @@
1
1
  import type { MalloyElement } from './ast';
2
- import type { FieldUsage, FieldUsageEntry, GivenUsage, PipeSegment, RefSummary, SourceDef, RequiredGroupBy, Annotation, PartitionCompositeDesc, StructDef } from '../model/malloy_types';
2
+ import type { FieldUsage, FieldUsageEntry, GivenUsage, PipeSegment, RefSummary, SourceDef, RequiredGroupBy, AnnotationsDef, PartitionCompositeDesc, StructDef } from '../model/malloy_types';
3
3
  type CompositeCouldNotFindFieldError = {
4
4
  code: 'could_not_find_field';
5
5
  data: {
@@ -51,7 +51,7 @@ interface CompositeFailure {
51
51
  issues: CompositeIssue[];
52
52
  }
53
53
  export declare function getExpandedSegment(segment: PipeSegment, inputSource: SourceDef): PipeSegment;
54
- export declare function getPartitionCompositeDesc(annotation: Annotation | undefined, structDef: StructDef, logTo: MalloyElement): PartitionCompositeDesc | undefined;
54
+ export declare function getPartitionCompositeDesc(annotations: AnnotationsDef | undefined, structDef: StructDef, logTo: MalloyElement): PartitionCompositeDesc | undefined;
55
55
  type SingleNarrowedCompositeFieldResolution = {
56
56
  source: SourceDef;
57
57
  nested?: SingleNarrowedCompositeFieldResolution | undefined;
@@ -33,7 +33,7 @@ const malloy_filter_1 = require("@malloydata/malloy-filter");
33
33
  const malloy_types_1 = require("../model/malloy_types");
34
34
  const utils_1 = require("./utils");
35
35
  const utils_2 = require("../model/utils");
36
- const annotation_1 = require("../annotation");
36
+ const annotation_1 = require("../api/foundation/annotation");
37
37
  function _resolveCompositeSources(path, source, rootFields, nests, fieldUsage,
38
38
  // for resolving nested composites; the list of sources to try
39
39
  sources) {
@@ -115,13 +115,13 @@ sources) {
115
115
  }
116
116
  base = {
117
117
  ...resolveInner.success,
118
- annotation: composeAnnotations(base.annotation, resolveInner.success.annotation),
118
+ annotations: composeAnnotations(base.annotations, resolveInner.success.annotations),
119
119
  };
120
120
  }
121
121
  else {
122
122
  base = {
123
123
  ...inputSource,
124
- annotation: composeAnnotations(base.annotation, inputSource.annotation),
124
+ annotations: composeAnnotations(base.annotations, inputSource.annotations),
125
125
  };
126
126
  }
127
127
  const fields = [...nonCompositeFields, ...base.fields];
@@ -544,10 +544,10 @@ function getPartitionCompositeFilter(partitionComposite, fieldUsage) {
544
544
  };
545
545
  return { partitionFilter, issues: undefined };
546
546
  }
547
- function getPartitionCompositeDesc(annotation, structDef, logTo) {
548
- if (annotation === undefined)
547
+ function getPartitionCompositeDesc(annotations, structDef, logTo) {
548
+ if (annotations === undefined)
549
549
  return undefined;
550
- const compilerFlags = new annotation_1.Annotations(annotation).parseAsTag('!').tag;
550
+ const compilerFlags = new annotation_1.Annotations(annotations).parseAsTag('!').tag;
551
551
  const partitionCompositeTag = compilerFlags.tag('experimental', 'partition_composite');
552
552
  if (partitionCompositeTag === undefined)
553
553
  return undefined;
@@ -62,129 +62,130 @@ export declare class MalloyLexer extends Lexer {
62
62
  static readonly ELSE = 56;
63
63
  static readonly END = 57;
64
64
  static readonly EXCLUDE = 58;
65
- static readonly EXTEND = 59;
66
- static readonly FALSE = 60;
67
- static readonly FILTER = 61;
68
- static readonly FULL = 62;
69
- static readonly FOR = 63;
70
- static readonly FROM = 64;
71
- static readonly HAS = 65;
72
- static readonly HOUR = 66;
73
- static readonly IMPORT = 67;
74
- static readonly INCLUDE = 68;
75
- static readonly INNER = 69;
76
- static readonly IS = 70;
77
- static readonly IN = 71;
78
- static readonly INTERNAL_KW = 72;
79
- static readonly JSON = 73;
80
- static readonly LAST = 74;
81
- static readonly LEFT = 75;
82
- static readonly LIKE = 76;
83
- static readonly MAX = 77;
84
- static readonly MIN = 78;
85
- static readonly MINUTE = 79;
86
- static readonly MONTH = 80;
87
- static readonly NOT = 81;
88
- static readonly NOW = 82;
89
- static readonly NULL = 83;
90
- static readonly NUMBER = 84;
91
- static readonly ON = 85;
92
- static readonly OR = 86;
93
- static readonly PICK = 87;
94
- static readonly PRIVATE_KW = 88;
95
- static readonly PUBLIC_KW = 89;
96
- static readonly QUARTER = 90;
97
- static readonly RIGHT = 91;
98
- static readonly SECOND = 92;
99
- static readonly STRING = 93;
100
- static readonly SOURCE_KW = 94;
101
- static readonly SUM = 95;
102
- static readonly SQL = 96;
103
- static readonly TABLE = 97;
104
- static readonly THEN = 98;
105
- static readonly THIS = 99;
106
- static readonly TIMESTAMPTZ = 100;
107
- static readonly TIMESTAMP = 101;
108
- static readonly TO = 102;
109
- static readonly TRUE = 103;
110
- static readonly TURTLE = 104;
111
- static readonly WEEK = 105;
112
- static readonly WHEN = 106;
113
- static readonly WITH = 107;
114
- static readonly YEAR = 108;
115
- static readonly UNGROUPED = 109;
116
- static readonly VIRTUAL = 110;
117
- static readonly HACKY_REGEX = 111;
118
- static readonly RAW_SQ = 112;
119
- static readonly RAW_DQ = 113;
120
- static readonly SQ3_FILTER = 114;
121
- static readonly SQ_FILTER = 115;
122
- static readonly DQ3_FILTER = 116;
123
- static readonly DQ_FILTER = 117;
124
- static readonly BQ3_FILTER = 118;
125
- static readonly BQ_FILTER = 119;
126
- static readonly SQ_STRING = 120;
127
- static readonly DQ_STRING = 121;
128
- static readonly BQ_STRING = 122;
129
- static readonly DOC_BLOCK_ANNOTATION_BEGIN = 123;
130
- static readonly BLOCK_ANNOTATION_BEGIN = 124;
131
- static readonly DOC_ANNOTATION = 125;
132
- static readonly ANNOTATION = 126;
133
- static readonly AMPER = 127;
134
- static readonly ARROW = 128;
135
- static readonly FAT_ARROW = 129;
136
- static readonly OPAREN = 130;
137
- static readonly CPAREN = 131;
138
- static readonly OBRACK = 132;
139
- static readonly CBRACK = 133;
140
- static readonly OCURLY = 134;
141
- static readonly CCURLY = 135;
142
- static readonly DOUBLECOLON = 136;
143
- static readonly TRIPLECOLON = 137;
144
- static readonly EXCLAM = 138;
145
- static readonly COLON = 139;
146
- static readonly COMMA = 140;
147
- static readonly DOT = 141;
148
- static readonly LT = 142;
149
- static readonly GT = 143;
150
- static readonly EQ = 144;
151
- static readonly NE = 145;
152
- static readonly LTE = 146;
153
- static readonly GTE = 147;
154
- static readonly PLUS = 148;
155
- static readonly MINUS = 149;
156
- static readonly STAR = 150;
157
- static readonly STARSTAR = 151;
158
- static readonly SLASH = 152;
159
- static readonly BAR = 153;
160
- static readonly SEMI = 154;
161
- static readonly NOT_MATCH = 155;
162
- static readonly MATCH = 156;
163
- static readonly PERCENT = 157;
164
- static readonly DOUBLE_QMARK = 158;
165
- static readonly QMARK = 159;
166
- static readonly LITERAL_TIMESTAMP = 160;
167
- static readonly LITERAL_HOUR = 161;
168
- static readonly LITERAL_DAY = 162;
169
- static readonly LITERAL_QUARTER = 163;
170
- static readonly LITERAL_MONTH = 164;
171
- static readonly LITERAL_WEEK = 165;
172
- static readonly LITERAL_YEAR = 166;
173
- static readonly GIVEN_REF = 167;
174
- static readonly IDENTIFIER = 168;
175
- static readonly PERCENT_LITERAL = 169;
176
- static readonly NUMERIC_LITERAL = 170;
177
- static readonly INTEGER_LITERAL = 171;
178
- static readonly BLOCK_COMMENT = 172;
179
- static readonly COMMENT_TO_EOL = 173;
180
- static readonly WHITE_SPACE = 174;
181
- static readonly SQL_BEGIN = 175;
182
- static readonly UNWATED_CHARS_TRAILING_NUMBERS = 176;
183
- static readonly UNEXPECTED_CHAR = 177;
184
- static readonly OPEN_CODE = 178;
185
- static readonly SQL_END = 179;
186
- static readonly BLOCK_ANNOTATION_END = 180;
187
- static readonly BLOCK_ANNOTATION_TEXT = 181;
65
+ static readonly EXPORT = 59;
66
+ static readonly EXTEND = 60;
67
+ static readonly FALSE = 61;
68
+ static readonly FILTER = 62;
69
+ static readonly FULL = 63;
70
+ static readonly FOR = 64;
71
+ static readonly FROM = 65;
72
+ static readonly HAS = 66;
73
+ static readonly HOUR = 67;
74
+ static readonly IMPORT = 68;
75
+ static readonly INCLUDE = 69;
76
+ static readonly INNER = 70;
77
+ static readonly IS = 71;
78
+ static readonly IN = 72;
79
+ static readonly INTERNAL_KW = 73;
80
+ static readonly JSON = 74;
81
+ static readonly LAST = 75;
82
+ static readonly LEFT = 76;
83
+ static readonly LIKE = 77;
84
+ static readonly MAX = 78;
85
+ static readonly MIN = 79;
86
+ static readonly MINUTE = 80;
87
+ static readonly MONTH = 81;
88
+ static readonly NOT = 82;
89
+ static readonly NOW = 83;
90
+ static readonly NULL = 84;
91
+ static readonly NUMBER = 85;
92
+ static readonly ON = 86;
93
+ static readonly OR = 87;
94
+ static readonly PICK = 88;
95
+ static readonly PRIVATE_KW = 89;
96
+ static readonly PUBLIC_KW = 90;
97
+ static readonly QUARTER = 91;
98
+ static readonly RIGHT = 92;
99
+ static readonly SECOND = 93;
100
+ static readonly STRING = 94;
101
+ static readonly SOURCE_KW = 95;
102
+ static readonly SUM = 96;
103
+ static readonly SQL = 97;
104
+ static readonly TABLE = 98;
105
+ static readonly THEN = 99;
106
+ static readonly THIS = 100;
107
+ static readonly TIMESTAMPTZ = 101;
108
+ static readonly TIMESTAMP = 102;
109
+ static readonly TO = 103;
110
+ static readonly TRUE = 104;
111
+ static readonly TURTLE = 105;
112
+ static readonly WEEK = 106;
113
+ static readonly WHEN = 107;
114
+ static readonly WITH = 108;
115
+ static readonly YEAR = 109;
116
+ static readonly UNGROUPED = 110;
117
+ static readonly VIRTUAL = 111;
118
+ static readonly HACKY_REGEX = 112;
119
+ static readonly RAW_SQ = 113;
120
+ static readonly RAW_DQ = 114;
121
+ static readonly SQ3_FILTER = 115;
122
+ static readonly SQ_FILTER = 116;
123
+ static readonly DQ3_FILTER = 117;
124
+ static readonly DQ_FILTER = 118;
125
+ static readonly BQ3_FILTER = 119;
126
+ static readonly BQ_FILTER = 120;
127
+ static readonly SQ_STRING = 121;
128
+ static readonly DQ_STRING = 122;
129
+ static readonly BQ_STRING = 123;
130
+ static readonly DOC_BLOCK_ANNOTATION_BEGIN = 124;
131
+ static readonly BLOCK_ANNOTATION_BEGIN = 125;
132
+ static readonly DOC_ANNOTATION = 126;
133
+ static readonly ANNOTATION = 127;
134
+ static readonly AMPER = 128;
135
+ static readonly ARROW = 129;
136
+ static readonly FAT_ARROW = 130;
137
+ static readonly OPAREN = 131;
138
+ static readonly CPAREN = 132;
139
+ static readonly OBRACK = 133;
140
+ static readonly CBRACK = 134;
141
+ static readonly OCURLY = 135;
142
+ static readonly CCURLY = 136;
143
+ static readonly DOUBLECOLON = 137;
144
+ static readonly TRIPLECOLON = 138;
145
+ static readonly EXCLAM = 139;
146
+ static readonly COLON = 140;
147
+ static readonly COMMA = 141;
148
+ static readonly DOT = 142;
149
+ static readonly LT = 143;
150
+ static readonly GT = 144;
151
+ static readonly EQ = 145;
152
+ static readonly NE = 146;
153
+ static readonly LTE = 147;
154
+ static readonly GTE = 148;
155
+ static readonly PLUS = 149;
156
+ static readonly MINUS = 150;
157
+ static readonly STAR = 151;
158
+ static readonly STARSTAR = 152;
159
+ static readonly SLASH = 153;
160
+ static readonly BAR = 154;
161
+ static readonly SEMI = 155;
162
+ static readonly NOT_MATCH = 156;
163
+ static readonly MATCH = 157;
164
+ static readonly PERCENT = 158;
165
+ static readonly DOUBLE_QMARK = 159;
166
+ static readonly QMARK = 160;
167
+ static readonly LITERAL_TIMESTAMP = 161;
168
+ static readonly LITERAL_HOUR = 162;
169
+ static readonly LITERAL_DAY = 163;
170
+ static readonly LITERAL_QUARTER = 164;
171
+ static readonly LITERAL_MONTH = 165;
172
+ static readonly LITERAL_WEEK = 166;
173
+ static readonly LITERAL_YEAR = 167;
174
+ static readonly GIVEN_REF = 168;
175
+ static readonly IDENTIFIER = 169;
176
+ static readonly PERCENT_LITERAL = 170;
177
+ static readonly NUMERIC_LITERAL = 171;
178
+ static readonly INTEGER_LITERAL = 172;
179
+ static readonly BLOCK_COMMENT = 173;
180
+ static readonly COMMENT_TO_EOL = 174;
181
+ static readonly WHITE_SPACE = 175;
182
+ static readonly SQL_BEGIN = 176;
183
+ static readonly UNWATED_CHARS_TRAILING_NUMBERS = 177;
184
+ static readonly UNEXPECTED_CHAR = 178;
185
+ static readonly OPEN_CODE = 179;
186
+ static readonly SQL_END = 180;
187
+ static readonly BLOCK_ANNOTATION_END = 181;
188
+ static readonly BLOCK_ANNOTATION_TEXT = 182;
188
189
  static readonly SQL_MODE = 1;
189
190
  static readonly BLOCK_ANNOTATION_MODE = 2;
190
191
  static readonly channelNames: string[];