@malloydata/malloy-tag 0.0.335 → 0.0.336

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 (59) hide show
  1. package/CONTEXT.md +83 -9
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.js +5 -1
  4. package/dist/index.js.map +1 -1
  5. package/dist/peggy/dist/peg-tag-parser.d.ts +11 -0
  6. package/dist/peggy/dist/peg-tag-parser.js +3130 -0
  7. package/dist/peggy/dist/peg-tag-parser.js.map +1 -0
  8. package/dist/peggy/index.d.ts +13 -0
  9. package/dist/peggy/index.js +117 -0
  10. package/dist/peggy/index.js.map +1 -0
  11. package/dist/peggy/interpreter.d.ts +32 -0
  12. package/dist/peggy/interpreter.js +208 -0
  13. package/dist/peggy/interpreter.js.map +1 -0
  14. package/dist/peggy/statements.d.ts +51 -0
  15. package/dist/peggy/statements.js +7 -0
  16. package/dist/peggy/statements.js.map +1 -0
  17. package/dist/schema.d.ts +41 -0
  18. package/dist/schema.js +573 -0
  19. package/dist/schema.js.map +1 -0
  20. package/dist/schema.spec.d.ts +1 -0
  21. package/dist/schema.spec.js +980 -0
  22. package/dist/schema.spec.js.map +1 -0
  23. package/dist/tags.d.ts +144 -37
  24. package/dist/tags.js +535 -344
  25. package/dist/tags.js.map +1 -1
  26. package/dist/tags.spec.js +524 -45
  27. package/dist/tags.spec.js.map +1 -1
  28. package/package.json +6 -8
  29. package/src/index.ts +3 -0
  30. package/src/motly-schema.motly +52 -0
  31. package/src/peggy/dist/peg-tag-parser.js +2790 -0
  32. package/src/peggy/index.ts +89 -0
  33. package/src/peggy/interpreter.ts +265 -0
  34. package/src/peggy/malloy-tag.peggy +224 -0
  35. package/src/peggy/statements.ts +49 -0
  36. package/src/schema.spec.ts +1280 -0
  37. package/src/schema.ts +852 -0
  38. package/src/tags.spec.ts +591 -46
  39. package/src/tags.ts +597 -398
  40. package/tsconfig.json +3 -2
  41. package/dist/lib/Malloy/MalloyTagLexer.d.ts +0 -42
  42. package/dist/lib/Malloy/MalloyTagLexer.js +0 -395
  43. package/dist/lib/Malloy/MalloyTagLexer.js.map +0 -1
  44. package/dist/lib/Malloy/MalloyTagParser.d.ts +0 -180
  45. package/dist/lib/Malloy/MalloyTagParser.js +0 -1077
  46. package/dist/lib/Malloy/MalloyTagParser.js.map +0 -1
  47. package/dist/lib/Malloy/MalloyTagVisitor.d.ts +0 -120
  48. package/dist/lib/Malloy/MalloyTagVisitor.js +0 -4
  49. package/dist/lib/Malloy/MalloyTagVisitor.js.map +0 -1
  50. package/scripts/build_parser.js +0 -98
  51. package/src/MalloyTag.g4 +0 -104
  52. package/src/lib/Malloy/MalloyTag.interp +0 -61
  53. package/src/lib/Malloy/MalloyTag.tokens +0 -32
  54. package/src/lib/Malloy/MalloyTagLexer.interp +0 -85
  55. package/src/lib/Malloy/MalloyTagLexer.tokens +0 -32
  56. package/src/lib/Malloy/MalloyTagLexer.ts +0 -386
  57. package/src/lib/Malloy/MalloyTagParser.ts +0 -1065
  58. package/src/lib/Malloy/MalloyTagVisitor.ts +0 -141
  59. package/src/lib/Malloy/_BUILD_DIGEST_ +0 -1
@@ -1,141 +0,0 @@
1
- // Generated from MalloyTag.g4 by ANTLR 4.9.0-SNAPSHOT
2
-
3
-
4
- import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
5
-
6
- import { TagEqContext } from "./MalloyTagParser";
7
- import { TagReplacePropertiesContext } from "./MalloyTagParser";
8
- import { TagUpdatePropertiesContext } from "./MalloyTagParser";
9
- import { TagDefContext } from "./MalloyTagParser";
10
- import { TagEmptyContext } from "./MalloyTagParser";
11
- import { TagLineContext } from "./MalloyTagParser";
12
- import { TagSpecContext } from "./MalloyTagParser";
13
- import { StringContext } from "./MalloyTagParser";
14
- import { IdentifierContext } from "./MalloyTagParser";
15
- import { PropNameContext } from "./MalloyTagParser";
16
- import { EqValueContext } from "./MalloyTagParser";
17
- import { ArrayElementContext } from "./MalloyTagParser";
18
- import { ReferenceContext } from "./MalloyTagParser";
19
- import { ArrayValueContext } from "./MalloyTagParser";
20
- import { PropertiesContext } from "./MalloyTagParser";
21
-
22
-
23
- /**
24
- * This interface defines a complete generic visitor for a parse tree produced
25
- * by `MalloyTagParser`.
26
- *
27
- * @param <Result> The return type of the visit operation. Use `void` for
28
- * operations with no return type.
29
- */
30
- export interface MalloyTagVisitor<Result> extends ParseTreeVisitor<Result> {
31
- /**
32
- * Visit a parse tree produced by the `tagEq`
33
- * labeled alternative in `MalloyTagParser.tagSpec`.
34
- * @param ctx the parse tree
35
- * @return the visitor result
36
- */
37
- visitTagEq?: (ctx: TagEqContext) => Result;
38
-
39
- /**
40
- * Visit a parse tree produced by the `tagReplaceProperties`
41
- * labeled alternative in `MalloyTagParser.tagSpec`.
42
- * @param ctx the parse tree
43
- * @return the visitor result
44
- */
45
- visitTagReplaceProperties?: (ctx: TagReplacePropertiesContext) => Result;
46
-
47
- /**
48
- * Visit a parse tree produced by the `tagUpdateProperties`
49
- * labeled alternative in `MalloyTagParser.tagSpec`.
50
- * @param ctx the parse tree
51
- * @return the visitor result
52
- */
53
- visitTagUpdateProperties?: (ctx: TagUpdatePropertiesContext) => Result;
54
-
55
- /**
56
- * Visit a parse tree produced by the `tagDef`
57
- * labeled alternative in `MalloyTagParser.tagSpec`.
58
- * @param ctx the parse tree
59
- * @return the visitor result
60
- */
61
- visitTagDef?: (ctx: TagDefContext) => Result;
62
-
63
- /**
64
- * Visit a parse tree produced by the `tagEmpty`
65
- * labeled alternative in `MalloyTagParser.tagSpec`.
66
- * @param ctx the parse tree
67
- * @return the visitor result
68
- */
69
- visitTagEmpty?: (ctx: TagEmptyContext) => Result;
70
-
71
- /**
72
- * Visit a parse tree produced by `MalloyTagParser.tagLine`.
73
- * @param ctx the parse tree
74
- * @return the visitor result
75
- */
76
- visitTagLine?: (ctx: TagLineContext) => Result;
77
-
78
- /**
79
- * Visit a parse tree produced by `MalloyTagParser.tagSpec`.
80
- * @param ctx the parse tree
81
- * @return the visitor result
82
- */
83
- visitTagSpec?: (ctx: TagSpecContext) => Result;
84
-
85
- /**
86
- * Visit a parse tree produced by `MalloyTagParser.string`.
87
- * @param ctx the parse tree
88
- * @return the visitor result
89
- */
90
- visitString?: (ctx: StringContext) => Result;
91
-
92
- /**
93
- * Visit a parse tree produced by `MalloyTagParser.identifier`.
94
- * @param ctx the parse tree
95
- * @return the visitor result
96
- */
97
- visitIdentifier?: (ctx: IdentifierContext) => Result;
98
-
99
- /**
100
- * Visit a parse tree produced by `MalloyTagParser.propName`.
101
- * @param ctx the parse tree
102
- * @return the visitor result
103
- */
104
- visitPropName?: (ctx: PropNameContext) => Result;
105
-
106
- /**
107
- * Visit a parse tree produced by `MalloyTagParser.eqValue`.
108
- * @param ctx the parse tree
109
- * @return the visitor result
110
- */
111
- visitEqValue?: (ctx: EqValueContext) => Result;
112
-
113
- /**
114
- * Visit a parse tree produced by `MalloyTagParser.arrayElement`.
115
- * @param ctx the parse tree
116
- * @return the visitor result
117
- */
118
- visitArrayElement?: (ctx: ArrayElementContext) => Result;
119
-
120
- /**
121
- * Visit a parse tree produced by `MalloyTagParser.reference`.
122
- * @param ctx the parse tree
123
- * @return the visitor result
124
- */
125
- visitReference?: (ctx: ReferenceContext) => Result;
126
-
127
- /**
128
- * Visit a parse tree produced by `MalloyTagParser.arrayValue`.
129
- * @param ctx the parse tree
130
- * @return the visitor result
131
- */
132
- visitArrayValue?: (ctx: ArrayValueContext) => Result;
133
-
134
- /**
135
- * Visit a parse tree produced by `MalloyTagParser.properties`.
136
- * @param ctx the parse tree
137
- * @return the visitor result
138
- */
139
- visitProperties?: (ctx: PropertiesContext) => Result;
140
- }
141
-
@@ -1 +0,0 @@
1
- {"/home/runner/work/malloy/malloy/packages/malloy-tag/scripts/build_parser.js":"c8ffc191-b633-58e4-a682-28d53616cd24","MalloyTag.g4":"adae88bb-999c-5ab6-a5c0-afc19cdc4ed4"}