astn 0.110.18 → 0.110.20

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 (167) hide show
  1. package/dist/bin/convert_to_json.js +10 -20
  2. package/dist/bin/validate_astn.js +9 -19
  3. package/dist/generated/{interface/schemas/target/resolved.d.ts → generic/astn_target.d.ts} +1 -1
  4. package/dist/generated/generic/astn_target.js +3 -0
  5. package/dist/generated/generic/resolve.d.ts +2 -2
  6. package/dist/generated/generic/resolve.js +14 -22
  7. package/dist/generated/implementation/generic/resolve.d.ts +81 -0
  8. package/dist/generated/implementation/generic/resolve.js +251 -0
  9. package/dist/generated/implementation/generic/unmarshall.d.ts +37 -0
  10. package/dist/generated/implementation/generic/unmarshall.js +168 -0
  11. package/dist/generated/implementation/schemas/ast/marshall.d.ts +7 -0
  12. package/dist/generated/implementation/schemas/ast/marshall.js +227 -0
  13. package/dist/generated/implementation/schemas/ast/serializer.d.ts +14 -0
  14. package/dist/generated/implementation/schemas/ast/serializer.js +328 -0
  15. package/dist/generated/implementation/schemas/ast/unmarshall.d.ts +7 -0
  16. package/dist/generated/implementation/schemas/ast/unmarshall.js +239 -0
  17. package/dist/generated/implementation/schemas/ide/marshall.d.ts +4 -0
  18. package/dist/generated/implementation/schemas/ide/marshall.js +81 -0
  19. package/dist/generated/implementation/schemas/ide/serializer.d.ts +3 -0
  20. package/dist/generated/implementation/schemas/ide/serializer.js +72 -0
  21. package/dist/generated/implementation/schemas/ide/unmarshall.d.ts +4 -0
  22. package/dist/generated/implementation/schemas/ide/unmarshall.js +79 -0
  23. package/dist/generated/implementation/schemas/parse_result/marshall.d.ts +3 -0
  24. package/dist/generated/implementation/schemas/parse_result/marshall.js +184 -0
  25. package/dist/generated/implementation/schemas/parse_result/serializer.d.ts +6 -0
  26. package/dist/generated/implementation/schemas/parse_result/serializer.js +288 -0
  27. package/dist/generated/implementation/schemas/parse_result/unmarshall.d.ts +3 -0
  28. package/dist/generated/implementation/schemas/parse_result/unmarshall.js +103 -0
  29. package/dist/generated/implementation/schemas/target/marshall.d.ts +3 -0
  30. package/dist/generated/implementation/schemas/target/marshall.js +122 -0
  31. package/dist/generated/implementation/schemas/target/serializer.d.ts +3 -0
  32. package/dist/generated/implementation/schemas/target/serializer.js +122 -0
  33. package/dist/generated/implementation/schemas/target/unmarshall.d.ts +3 -0
  34. package/dist/generated/implementation/schemas/target/unmarshall.js +81 -0
  35. package/dist/generated/implementation/schemas/token/marshall.d.ts +11 -0
  36. package/dist/generated/implementation/schemas/token/marshall.js +230 -0
  37. package/dist/generated/implementation/schemas/token/unmarshall.d.ts +11 -0
  38. package/dist/generated/implementation/schemas/token/unmarshall.js +180 -0
  39. package/dist/generated/interface/core/astn_source.d.ts +116 -0
  40. package/dist/generated/interface/core/astn_source.js +3 -0
  41. package/dist/generated/interface/{schemas/target/unresolved.d.ts → core/astn_target.d.ts} +27 -27
  42. package/dist/generated/interface/core/astn_target.js +3 -0
  43. package/dist/generated/interface/core/resolve.d.ts +11 -0
  44. package/dist/generated/interface/core/resolve.js +3 -0
  45. package/dist/generated/interface/core/unconstrained.d.ts +19 -0
  46. package/dist/generated/interface/core/unconstrained.js +3 -0
  47. package/dist/generated/interface/core/unresolved.d.ts +162 -13
  48. package/dist/generated/interface/generic/resolve.d.ts +11 -0
  49. package/dist/generated/interface/generic/resolve.js +3 -0
  50. package/dist/generated/interface/schemas/ast/marshall.d.ts +226 -0
  51. package/dist/generated/interface/schemas/{ide/resolved.js → ast/marshall.js} +1 -1
  52. package/dist/generated/interface/schemas/ast/migrate_boilerplate.d.ts +134 -0
  53. package/dist/generated/interface/schemas/ast/migrate_boilerplate.js +3 -0
  54. package/dist/generated/interface/schemas/ast/serializer.d.ts +436 -0
  55. package/dist/generated/interface/schemas/ast/{unresolved.js → serializer.js} +1 -1
  56. package/dist/generated/interface/schemas/ast/unconstrained.d.ts +20 -210
  57. package/dist/generated/interface/schemas/ast/unmarshall.d.ts +134 -0
  58. package/dist/generated/interface/schemas/{ide/unresolved.js → ast/unmarshall.js} +1 -1
  59. package/dist/generated/interface/schemas/ide/marshall.d.ts +136 -0
  60. package/dist/generated/interface/schemas/{ast/resolved.js → ide/marshall.js} +1 -1
  61. package/dist/generated/interface/schemas/ide/migrate_boilerplate.d.ts +68 -0
  62. package/dist/generated/interface/schemas/ide/migrate_boilerplate.js +3 -0
  63. package/dist/generated/interface/schemas/ide/serializer.d.ts +106 -0
  64. package/dist/generated/interface/schemas/{target/unresolved.js → ide/serializer.js} +1 -1
  65. package/dist/generated/interface/schemas/ide/unconstrained.d.ts +50 -29
  66. package/dist/generated/interface/schemas/ide/unmarshall.d.ts +68 -0
  67. package/dist/generated/interface/schemas/{parse_result/unresolved.js → ide/unmarshall.js} +1 -1
  68. package/dist/generated/interface/schemas/parse_result/marshall.d.ts +106 -0
  69. package/dist/generated/interface/schemas/parse_result/{resolved.js → marshall.js} +1 -1
  70. package/dist/generated/interface/schemas/parse_result/migrate_boilerplate.d.ts +46 -0
  71. package/dist/generated/interface/schemas/parse_result/migrate_boilerplate.js +3 -0
  72. package/dist/generated/interface/schemas/parse_result/serializer.d.ts +196 -0
  73. package/dist/generated/interface/schemas/parse_result/serializer.js +3 -0
  74. package/dist/generated/interface/schemas/parse_result/unconstrained.d.ts +20 -168
  75. package/dist/generated/interface/schemas/parse_result/unmarshall.d.ts +46 -0
  76. package/dist/generated/interface/schemas/parse_result/unmarshall.js +3 -0
  77. package/dist/generated/interface/schemas/target/marshall.d.ts +126 -0
  78. package/dist/generated/interface/schemas/target/{resolved.js → marshall.js} +1 -1
  79. package/dist/generated/interface/schemas/target/migrate_boilerplate.d.ts +46 -0
  80. package/dist/generated/interface/schemas/target/migrate_boilerplate.js +3 -0
  81. package/dist/generated/interface/schemas/target/serializer.d.ts +126 -0
  82. package/dist/generated/interface/schemas/target/serializer.js +3 -0
  83. package/dist/generated/interface/schemas/target/unconstrained.d.ts +1 -1
  84. package/dist/generated/interface/schemas/target/unmarshall.d.ts +46 -0
  85. package/dist/generated/interface/schemas/target/unmarshall.js +3 -0
  86. package/dist/generated/interface/schemas/target_json/unconstrained.d.ts +1 -1
  87. package/dist/generated/interface/schemas/token/marshall.d.ts +346 -0
  88. package/dist/generated/interface/schemas/token/marshall.js +3 -0
  89. package/dist/generated/interface/schemas/token/migrate_boilerplate.d.ts +222 -0
  90. package/dist/generated/interface/schemas/token/migrate_boilerplate.js +3 -0
  91. package/dist/generated/interface/schemas/token/unconstrained.d.ts +326 -0
  92. package/dist/generated/interface/schemas/token/unconstrained.js +3 -0
  93. package/dist/generated/interface/schemas/token/unmarshall.d.ts +222 -0
  94. package/dist/generated/interface/schemas/token/unmarshall.js +3 -0
  95. package/dist/index.js +8 -18
  96. package/dist/parse/ast.d.ts +10 -0
  97. package/dist/parse/ast.js +227 -0
  98. package/dist/parse/astn_parse_generic.d.ts +8 -0
  99. package/dist/parse/astn_parse_generic.js +65 -0
  100. package/dist/parse/parse.d.ts +3 -10
  101. package/dist/parse/parse.js +19 -226
  102. package/dist/parse/parse_generic.d.ts +7 -42
  103. package/dist/parse/parse_generic.js +14 -605
  104. package/dist/{transformations/parse_generic.d.ts → parse/string_iterator.d.ts} +19 -15
  105. package/dist/parse/string_iterator.js +139 -0
  106. package/dist/parse/token.d.ts +9 -0
  107. package/dist/parse/token.js +506 -0
  108. package/dist/parse/tokenize.d.ts +8 -0
  109. package/dist/parse/tokenize.js +483 -0
  110. package/dist/serializers/json.js +8 -18
  111. package/dist/serializers/parse_result.js +8 -18
  112. package/dist/transformations/ast/ide.d.ts +3 -2
  113. package/dist/transformations/ast/ide.js +8 -18
  114. package/dist/transformations/ast/json_target.d.ts +1 -1
  115. package/dist/transformations/ast/json_target.js +8 -18
  116. package/dist/transformations/target/fountain_pen_block.js +10 -20
  117. package/dist/transformations/target_json/fountain_pen_block.js +8 -18
  118. package/package.json +5 -7
  119. package/dist/generated/interface/schemas/ast/poormans_parser.d.ts +0 -1108
  120. package/dist/generated/interface/schemas/ast/poormans_parser.js +0 -3
  121. package/dist/generated/interface/schemas/ast/resolved.d.ts +0 -1108
  122. package/dist/generated/interface/schemas/ast/unresolved.d.ts +0 -1108
  123. package/dist/generated/interface/schemas/ide/poormans_parser.d.ts +0 -161
  124. package/dist/generated/interface/schemas/ide/poormans_parser.js +0 -3
  125. package/dist/generated/interface/schemas/ide/resolved.d.ts +0 -161
  126. package/dist/generated/interface/schemas/ide/unresolved.d.ts +0 -161
  127. package/dist/generated/interface/schemas/parse_result/poormans_parser.d.ts +0 -416
  128. package/dist/generated/interface/schemas/parse_result/poormans_parser.js +0 -3
  129. package/dist/generated/interface/schemas/parse_result/resolved.d.ts +0 -416
  130. package/dist/generated/interface/schemas/parse_result/unresolved.d.ts +0 -416
  131. package/dist/generated/interface/schemas/target/poormans_parser.d.ts +0 -186
  132. package/dist/generated/interface/schemas/target/poormans_parser.js +0 -3
  133. package/dist/generated/interface/schemas/target_json/poormans_parser.d.ts +0 -169
  134. package/dist/generated/interface/schemas/target_json/poormans_parser.js +0 -3
  135. package/dist/generated/interface/schemas/target_json/resolved.d.ts +0 -169
  136. package/dist/generated/interface/schemas/target_json/resolved.js +0 -3
  137. package/dist/generated/interface/schemas/target_json/unresolved.d.ts +0 -169
  138. package/dist/generated/interface/schemas/target_json/unresolved.js +0 -3
  139. package/dist/lib/globals.d.ts +0 -24
  140. package/dist/lib/globals.js +0 -2
  141. package/dist/lib/transformations/create_error_message.d.ts +0 -5
  142. package/dist/lib/transformations/create_error_message.js +0 -89
  143. package/dist/lib/transformations/format.d.ts +0 -42
  144. package/dist/lib/transformations/format.js +0 -166
  145. package/dist/lib/transformations/fountain_pen/astn.d.ts +0 -11
  146. package/dist/lib/transformations/fountain_pen/astn.js +0 -156
  147. package/dist/lib/transformations/fountain_pen/json.d.ts +0 -4
  148. package/dist/lib/transformations/fountain_pen/json.js +0 -113
  149. package/dist/lib/transformations/parse.d.ts +0 -11
  150. package/dist/lib/transformations/parse.js +0 -257
  151. package/dist/lib/transformations/parse_generic.d.ts +0 -43
  152. package/dist/lib/transformations/parse_generic.js +0 -644
  153. package/dist/transformations/create_error_message.d.ts +0 -5
  154. package/dist/transformations/create_error_message.js +0 -89
  155. package/dist/transformations/format.d.ts +0 -42
  156. package/dist/transformations/format.js +0 -166
  157. package/dist/transformations/fountain_pen/astn.d.ts +0 -11
  158. package/dist/transformations/fountain_pen/astn.js +0 -166
  159. package/dist/transformations/fountain_pen/json.d.ts +0 -4
  160. package/dist/transformations/fountain_pen/json.js +0 -123
  161. package/dist/transformations/parse.d.ts +0 -11
  162. package/dist/transformations/parse.js +0 -257
  163. package/dist/transformations/parse_generic.js +0 -644
  164. package/dist/transformations/target/fountain_pen/astn.d.ts +0 -11
  165. package/dist/transformations/target/fountain_pen/astn.js +0 -156
  166. package/dist/transformations/target/fountain_pen/json.d.ts +0 -4
  167. package/dist/transformations/target/fountain_pen/json.js +0 -113
@@ -1,8 +1,8 @@
1
- import * as _i_core from "../../core/unresolved";
1
+ import * as _pt from 'exupery-core-types';
2
2
  export type _T_Document = _T_Value;
3
- export type _T_Value = _i_core._T_State_Group<null, readonly ['concise group', _i_core._T_List<null, _T_Value>] | readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly ['list', _i_core._T_List<null, _T_Value>] | readonly ['nothing', null] | readonly [
3
+ export type _T_Value = readonly ['concise group', _pt.Array<_T_Value>] | readonly ['dictionary', _pt.Dictionary<_T_Value>] | readonly ['list', _pt.Array<_T_Value>] | readonly ['nothing', null] | readonly [
4
4
  'optional',
5
- _i_core._T_State_Group<null, readonly ['not set', null] | readonly ['set', _T_Value]>
5
+ readonly ['not set', null] | readonly ['set', _T_Value]
6
6
  ] | readonly [
7
7
  'state',
8
8
  {
@@ -12,10 +12,10 @@ export type _T_Value = _i_core._T_State_Group<null, readonly ['concise group', _
12
12
  ] | readonly [
13
13
  'text',
14
14
  {
15
- readonly 'delimiter': _i_core._T_State_Group<null, readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null]>;
15
+ readonly 'delimiter': readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null];
16
16
  readonly 'value': string;
17
17
  }
18
- ] | readonly ['verbose group', _i_core._T_Dictionary<null, _T_Value>]>;
18
+ ] | readonly ['verbose group', _pt.Dictionary<_T_Value>];
19
19
  export type Document = _T_Document;
20
20
  export type Value = _T_Value;
21
21
  export declare namespace _T_Document {
@@ -27,19 +27,19 @@ export declare namespace _T_Value {
27
27
  }
28
28
  type L = _T_Value;
29
29
  }
30
- type concise_group = _i_core._T_List<null, _T_Value>;
30
+ type concise_group = _pt.Array<_T_Value>;
31
31
  namespace dictionary {
32
32
  namespace D {
33
33
  }
34
34
  type D = _T_Value;
35
35
  }
36
- type dictionary = _i_core._T_Dictionary<null, _T_Value>;
36
+ type dictionary = _pt.Dictionary<_T_Value>;
37
37
  namespace list {
38
38
  namespace L {
39
39
  }
40
40
  type L = _T_Value;
41
41
  }
42
- type list = _i_core._T_List<null, _T_Value>;
42
+ type list = _pt.Array<_T_Value>;
43
43
  type nothing = null;
44
44
  namespace optional {
45
45
  namespace SG {
@@ -50,7 +50,7 @@ export declare namespace _T_Value {
50
50
  }
51
51
  type SG = readonly ['not set', null] | readonly ['set', _T_Value];
52
52
  }
53
- type optional = _i_core._T_State_Group<null, readonly ['not set', null] | readonly ['set', _T_Value]>;
53
+ type optional = readonly ['not set', null] | readonly ['set', _T_Value];
54
54
  namespace state {
55
55
  type state = string;
56
56
  namespace value {
@@ -70,11 +70,11 @@ export declare namespace _T_Value {
70
70
  }
71
71
  type SG = readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null];
72
72
  }
73
- type delimiter = _i_core._T_State_Group<null, readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null]>;
73
+ type delimiter = readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null];
74
74
  type value = string;
75
75
  }
76
76
  type text = {
77
- readonly 'delimiter': _i_core._T_State_Group<null, readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null]>;
77
+ readonly 'delimiter': readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null];
78
78
  readonly 'value': string;
79
79
  };
80
80
  namespace verbose_group {
@@ -82,11 +82,11 @@ export declare namespace _T_Value {
82
82
  }
83
83
  type D = _T_Value;
84
84
  }
85
- type verbose_group = _i_core._T_Dictionary<null, _T_Value>;
85
+ type verbose_group = _pt.Dictionary<_T_Value>;
86
86
  }
87
- type SG = readonly ['concise group', _i_core._T_List<null, _T_Value>] | readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly ['list', _i_core._T_List<null, _T_Value>] | readonly ['nothing', null] | readonly [
87
+ type SG = readonly ['concise group', _pt.Array<_T_Value>] | readonly ['dictionary', _pt.Dictionary<_T_Value>] | readonly ['list', _pt.Array<_T_Value>] | readonly ['nothing', null] | readonly [
88
88
  'optional',
89
- _i_core._T_State_Group<null, readonly ['not set', null] | readonly ['set', _T_Value]>
89
+ readonly ['not set', null] | readonly ['set', _T_Value]
90
90
  ] | readonly [
91
91
  'state',
92
92
  {
@@ -96,10 +96,10 @@ export declare namespace _T_Value {
96
96
  ] | readonly [
97
97
  'text',
98
98
  {
99
- readonly 'delimiter': _i_core._T_State_Group<null, readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null]>;
99
+ readonly 'delimiter': readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null];
100
100
  readonly 'value': string;
101
101
  }
102
- ] | readonly ['verbose group', _i_core._T_Dictionary<null, _T_Value>];
102
+ ] | readonly ['verbose group', _pt.Dictionary<_T_Value>];
103
103
  }
104
104
  export declare namespace Document {
105
105
  }
@@ -110,19 +110,19 @@ export declare namespace Value {
110
110
  }
111
111
  type L = _T_Value;
112
112
  }
113
- type concise_group = _i_core._T_List<null, _T_Value>;
113
+ type concise_group = _pt.Array<_T_Value>;
114
114
  namespace dictionary {
115
115
  namespace D {
116
116
  }
117
117
  type D = _T_Value;
118
118
  }
119
- type dictionary = _i_core._T_Dictionary<null, _T_Value>;
119
+ type dictionary = _pt.Dictionary<_T_Value>;
120
120
  namespace list {
121
121
  namespace L {
122
122
  }
123
123
  type L = _T_Value;
124
124
  }
125
- type list = _i_core._T_List<null, _T_Value>;
125
+ type list = _pt.Array<_T_Value>;
126
126
  type nothing = null;
127
127
  namespace optional {
128
128
  namespace SG {
@@ -133,7 +133,7 @@ export declare namespace Value {
133
133
  }
134
134
  type SG = readonly ['not set', null] | readonly ['set', _T_Value];
135
135
  }
136
- type optional = _i_core._T_State_Group<null, readonly ['not set', null] | readonly ['set', _T_Value]>;
136
+ type optional = readonly ['not set', null] | readonly ['set', _T_Value];
137
137
  namespace state {
138
138
  type state = string;
139
139
  namespace value {
@@ -153,11 +153,11 @@ export declare namespace Value {
153
153
  }
154
154
  type SG = readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null];
155
155
  }
156
- type delimiter = _i_core._T_State_Group<null, readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null]>;
156
+ type delimiter = readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null];
157
157
  type value = string;
158
158
  }
159
159
  type text = {
160
- readonly 'delimiter': _i_core._T_State_Group<null, readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null]>;
160
+ readonly 'delimiter': readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null];
161
161
  readonly 'value': string;
162
162
  };
163
163
  namespace verbose_group {
@@ -165,11 +165,11 @@ export declare namespace Value {
165
165
  }
166
166
  type D = _T_Value;
167
167
  }
168
- type verbose_group = _i_core._T_Dictionary<null, _T_Value>;
168
+ type verbose_group = _pt.Dictionary<_T_Value>;
169
169
  }
170
- type SG = readonly ['concise group', _i_core._T_List<null, _T_Value>] | readonly ['dictionary', _i_core._T_Dictionary<null, _T_Value>] | readonly ['list', _i_core._T_List<null, _T_Value>] | readonly ['nothing', null] | readonly [
170
+ type SG = readonly ['concise group', _pt.Array<_T_Value>] | readonly ['dictionary', _pt.Dictionary<_T_Value>] | readonly ['list', _pt.Array<_T_Value>] | readonly ['nothing', null] | readonly [
171
171
  'optional',
172
- _i_core._T_State_Group<null, readonly ['not set', null] | readonly ['set', _T_Value]>
172
+ readonly ['not set', null] | readonly ['set', _T_Value]
173
173
  ] | readonly [
174
174
  'state',
175
175
  {
@@ -179,8 +179,8 @@ export declare namespace Value {
179
179
  ] | readonly [
180
180
  'text',
181
181
  {
182
- readonly 'delimiter': _i_core._T_State_Group<null, readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null]>;
182
+ readonly 'delimiter': readonly ['backtick', null] | readonly ['none', null] | readonly ['quote', null];
183
183
  readonly 'value': string;
184
184
  }
185
- ] | readonly ['verbose group', _i_core._T_Dictionary<null, _T_Value>];
185
+ ] | readonly ['verbose group', _pt.Dictionary<_T_Value>];
186
186
  }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN0bl90YXJnZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZ2VuZXJhdGVkL2ludGVyZmFjZS9jb3JlL2FzdG5fdGFyZ2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -0,0 +1,11 @@
1
+ import * as pt from 'exupery-core-types';
2
+ export type Location_to_String<Source> = ($: Source) => string;
3
+ export type _T_Location_2_String<Source> = Location_to_String<Source>;
4
+ export type Non_Circular_Result<T> = ['error', ['circular', pt.Array<string>]] | ['resolved', T];
5
+ export type Acyclic_Lookup<T> = pt.Optional_Value<pt.Lookup<Non_Circular_Result<T>>>;
6
+ export type _T_Acyclic_Lookup<T> = Acyclic_Lookup<T>;
7
+ export type Possibly_Circular_Result<T> = pt.Computed_Value<T>;
8
+ export type Cyclic_Lookup<T> = pt.Optional_Value<pt.Lookup<Possibly_Circular_Result<T>>>;
9
+ export type _T_Cyclic_Lookup<T> = Cyclic_Lookup<T>;
10
+ export type Lookup_Stack<T> = pt.Array<Acyclic_Lookup<T>>;
11
+ export type _T_Lookup_Stack<T> = Lookup_Stack<T>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9nZW5lcmF0ZWQvaW50ZXJmYWNlL2NvcmUvcmVzb2x2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,19 @@
1
+ import * as _pt from 'exupery-core-types';
2
+ export type _T_Dictionary<G_Source, T_D> = _pt.Dictionary<T_D>;
3
+ export type _T_List<G_Source, T_L> = _pt.Array<T_L>;
4
+ export type _T_State_Group<G_Source, T_SG> = T_SG;
5
+ export type Dictionary<G_Source, T_D> = _T_Dictionary<G_Source, T_D>;
6
+ export type List<G_Source, T_L> = _T_List<G_Source, T_L>;
7
+ export type State_Group<G_Source, T_SG> = _T_State_Group<G_Source, T_SG>;
8
+ export declare namespace _T_Dictionary {
9
+ type D<G_Source, T_D> = T_D;
10
+ }
11
+ export declare namespace _T_List {
12
+ type L<G_Source, T_L> = T_L;
13
+ }
14
+ export declare namespace Dictionary {
15
+ type D<G_Source, T_D> = T_D;
16
+ }
17
+ export declare namespace List {
18
+ type L<G_Source, T_L> = T_L;
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5jb25zdHJhaW5lZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9nZW5lcmF0ZWQvaW50ZXJmYWNlL2NvcmUvdW5jb25zdHJhaW5lZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -1,12 +1,43 @@
1
1
  import * as _pt from 'exupery-core-types';
2
2
  export type _T_Derived_Reference<G_Source, T_Type> = null;
3
- export type _T_Dictionary<G_Source, T_D> = _pt.Dictionary<T_D>;
4
- export type _T_List<G_Source, T_L> = _pt.Array<T_L>;
5
- export type _T_Ordered_Dictionary<G_Source, T_D> = _pt.Dictionary<T_D>;
6
- export type _T_Reference_To_Circular_Dependent_Sibling<G_Source, T_Dictionary_Entry> = string;
7
- export type _T_Reference_To_Normal_Dictionary_Entry<G_Source, T_Dictionary_Entry> = string;
8
- export type _T_Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry> = string;
9
- export type _T_State_Group<G_Source, T_SG> = T_SG;
3
+ export type _T_Dictionary<G_Source, T_D> = {
4
+ readonly 'dictionary': _pt.Dictionary<{
5
+ readonly 'entry': T_D;
6
+ readonly 'location': G_Source;
7
+ }>;
8
+ readonly 'location': G_Source;
9
+ };
10
+ export type _T_List<G_Source, T_L> = {
11
+ readonly 'list': _pt.Array<{
12
+ readonly 'element': T_L;
13
+ readonly 'location': G_Source;
14
+ }>;
15
+ readonly 'location': G_Source;
16
+ };
17
+ export type _T_Ordered_Dictionary<G_Source, T_D> = {
18
+ readonly 'dictionary': _pt.Dictionary<{
19
+ readonly 'entry': T_D;
20
+ readonly 'location': G_Source;
21
+ }>;
22
+ readonly 'location': G_Source;
23
+ };
24
+ export type _T_Reference_To_Circular_Dependent_Sibling<G_Source, T_Dictionary_Entry> = {
25
+ readonly 'key': string;
26
+ readonly 'location': G_Source;
27
+ };
28
+ export type _T_Reference_To_Normal_Dictionary_Entry<G_Source, T_Dictionary_Entry> = {
29
+ readonly 'key': string;
30
+ readonly 'location': G_Source;
31
+ };
32
+ export type _T_Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry> = {
33
+ readonly 'key': string;
34
+ readonly 'location': G_Source;
35
+ readonly 'up steps': number;
36
+ };
37
+ export type _T_State_Group<G_Source, T_SG> = {
38
+ readonly 'location': G_Source;
39
+ readonly 'state group': T_SG;
40
+ };
10
41
  export type Derived_Reference<G_Source, T_Type> = _T_Derived_Reference<G_Source, T_Type>;
11
42
  export type Dictionary<G_Source, T_D> = _T_Dictionary<G_Source, T_D>;
12
43
  export type List<G_Source, T_L> = _T_List<G_Source, T_L>;
@@ -16,20 +47,138 @@ export type Reference_To_Normal_Dictionary_Entry<G_Source, T_Dictionary_Entry> =
16
47
  export type Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry> = _T_Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry>;
17
48
  export type State_Group<G_Source, T_SG> = _T_State_Group<G_Source, T_SG>;
18
49
  export declare namespace _T_Dictionary {
19
- type D<G_Source, T_D> = T_D;
50
+ namespace dictionary {
51
+ namespace D {
52
+ type entry<G_Source, T_D> = T_D;
53
+ type location<G_Source, T_D> = G_Source;
54
+ }
55
+ type D<G_Source, T_D> = {
56
+ readonly 'entry': T_D;
57
+ readonly 'location': G_Source;
58
+ };
59
+ }
60
+ type dictionary<G_Source, T_D> = _pt.Dictionary<{
61
+ readonly 'entry': T_D;
62
+ readonly 'location': G_Source;
63
+ }>;
64
+ type location<G_Source, T_D> = G_Source;
20
65
  }
21
66
  export declare namespace _T_List {
22
- type L<G_Source, T_L> = T_L;
67
+ namespace list {
68
+ namespace L {
69
+ type element<G_Source, T_L> = T_L;
70
+ type location<G_Source, T_L> = G_Source;
71
+ }
72
+ type L<G_Source, T_L> = {
73
+ readonly 'element': T_L;
74
+ readonly 'location': G_Source;
75
+ };
76
+ }
77
+ type list<G_Source, T_L> = _pt.Array<{
78
+ readonly 'element': T_L;
79
+ readonly 'location': G_Source;
80
+ }>;
81
+ type location<G_Source, T_L> = G_Source;
23
82
  }
24
83
  export declare namespace _T_Ordered_Dictionary {
25
- type D<G_Source, T_D> = T_D;
84
+ namespace dictionary {
85
+ namespace D {
86
+ type entry<G_Source, T_D> = T_D;
87
+ type location<G_Source, T_D> = G_Source;
88
+ }
89
+ type D<G_Source, T_D> = {
90
+ readonly 'entry': T_D;
91
+ readonly 'location': G_Source;
92
+ };
93
+ }
94
+ type dictionary<G_Source, T_D> = _pt.Dictionary<{
95
+ readonly 'entry': T_D;
96
+ readonly 'location': G_Source;
97
+ }>;
98
+ type location<G_Source, T_D> = G_Source;
99
+ }
100
+ export declare namespace _T_Reference_To_Circular_Dependent_Sibling {
101
+ type key<G_Source, T_Dictionary_Entry> = string;
102
+ type location<G_Source, T_Dictionary_Entry> = G_Source;
103
+ }
104
+ export declare namespace _T_Reference_To_Normal_Dictionary_Entry {
105
+ type key<G_Source, T_Dictionary_Entry> = string;
106
+ type location<G_Source, T_Dictionary_Entry> = G_Source;
107
+ }
108
+ export declare namespace _T_Reference_To_Stacked_Dictionary_Entry {
109
+ type key<G_Source, T_Dictionary_Entry> = string;
110
+ type location<G_Source, T_Dictionary_Entry> = G_Source;
111
+ type up_steps<G_Source, T_Dictionary_Entry> = number;
112
+ }
113
+ export declare namespace _T_State_Group {
114
+ type location<G_Source, T_SG> = G_Source;
115
+ type state_group<G_Source, T_SG> = T_SG;
26
116
  }
27
117
  export declare namespace Dictionary {
28
- type D<G_Source, T_D> = T_D;
118
+ namespace dictionary {
119
+ namespace D {
120
+ type entry<G_Source, T_D> = T_D;
121
+ type location<G_Source, T_D> = G_Source;
122
+ }
123
+ type D<G_Source, T_D> = {
124
+ readonly 'entry': T_D;
125
+ readonly 'location': G_Source;
126
+ };
127
+ }
128
+ type dictionary<G_Source, T_D> = _pt.Dictionary<{
129
+ readonly 'entry': T_D;
130
+ readonly 'location': G_Source;
131
+ }>;
132
+ type location<G_Source, T_D> = G_Source;
29
133
  }
30
134
  export declare namespace List {
31
- type L<G_Source, T_L> = T_L;
135
+ namespace list {
136
+ namespace L {
137
+ type element<G_Source, T_L> = T_L;
138
+ type location<G_Source, T_L> = G_Source;
139
+ }
140
+ type L<G_Source, T_L> = {
141
+ readonly 'element': T_L;
142
+ readonly 'location': G_Source;
143
+ };
144
+ }
145
+ type list<G_Source, T_L> = _pt.Array<{
146
+ readonly 'element': T_L;
147
+ readonly 'location': G_Source;
148
+ }>;
149
+ type location<G_Source, T_L> = G_Source;
32
150
  }
33
151
  export declare namespace Ordered_Dictionary {
34
- type D<G_Source, T_D> = T_D;
152
+ namespace dictionary {
153
+ namespace D {
154
+ type entry<G_Source, T_D> = T_D;
155
+ type location<G_Source, T_D> = G_Source;
156
+ }
157
+ type D<G_Source, T_D> = {
158
+ readonly 'entry': T_D;
159
+ readonly 'location': G_Source;
160
+ };
161
+ }
162
+ type dictionary<G_Source, T_D> = _pt.Dictionary<{
163
+ readonly 'entry': T_D;
164
+ readonly 'location': G_Source;
165
+ }>;
166
+ type location<G_Source, T_D> = G_Source;
167
+ }
168
+ export declare namespace Reference_To_Circular_Dependent_Sibling {
169
+ type key<G_Source, T_Dictionary_Entry> = string;
170
+ type location<G_Source, T_Dictionary_Entry> = G_Source;
171
+ }
172
+ export declare namespace Reference_To_Normal_Dictionary_Entry {
173
+ type key<G_Source, T_Dictionary_Entry> = string;
174
+ type location<G_Source, T_Dictionary_Entry> = G_Source;
175
+ }
176
+ export declare namespace Reference_To_Stacked_Dictionary_Entry {
177
+ type key<G_Source, T_Dictionary_Entry> = string;
178
+ type location<G_Source, T_Dictionary_Entry> = G_Source;
179
+ type up_steps<G_Source, T_Dictionary_Entry> = number;
180
+ }
181
+ export declare namespace State_Group {
182
+ type location<G_Source, T_SG> = G_Source;
183
+ type state_group<G_Source, T_SG> = T_SG;
35
184
  }
@@ -0,0 +1,11 @@
1
+ import * as pt from 'exupery-core-types';
2
+ export type Location_to_String<Source> = ($: Source) => string;
3
+ export type _T_Location_2_String<Source> = Location_to_String<Source>;
4
+ export type Non_Circular_Result<T> = ['error', ['circular', pt.Array<string>]] | ['resolved', T];
5
+ export type Acyclic_Lookup<T> = pt.Optional_Value<pt.Lookup<Non_Circular_Result<T>>>;
6
+ export type _T_Acyclic_Lookup<T> = Acyclic_Lookup<T>;
7
+ export type Possibly_Circular_Result<T> = pt.Computed_Value<T>;
8
+ export type Cyclic_Lookup<T> = pt.Optional_Value<pt.Lookup<Possibly_Circular_Result<T>>>;
9
+ export type _T_Cyclic_Lookup<T> = Cyclic_Lookup<T>;
10
+ export type Lookup_Stack<T> = pt.Array<Acyclic_Lookup<T>>;
11
+ export type _T_Lookup_Stack<T> = Lookup_Stack<T>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9nZW5lcmF0ZWQvaW50ZXJmYWNlL2dlbmVyaWMvcmVzb2x2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
@@ -0,0 +1,226 @@
1
+ import * as _i_in from "./unconstrained";
2
+ import * as _i_out from "../../core/astn_target";
3
+ export type _T_Value_Serializers = {
4
+ readonly 'boolean': ($$_: boolean, $$_p: null) => string;
5
+ readonly 'custom numbers': null;
6
+ readonly 'default number': ($$_: number, $$_p: null) => string;
7
+ };
8
+ export type _T_s_Document = ($$_: _i_in._T_Document, $$_p: {
9
+ readonly 'value serializers': _T_Value_Serializers;
10
+ }) => _i_out._T_Value;
11
+ export type _T_s_Elements = ($$_: _i_in._T_Elements, $$_p: {
12
+ readonly 'value serializers': _T_Value_Serializers;
13
+ }) => _i_out._T_Value;
14
+ export type _T_s_Key_Value_Pairs = ($$_: _i_in._T_Key_Value_Pairs, $$_p: {
15
+ readonly 'value serializers': _T_Value_Serializers;
16
+ }) => _i_out._T_Value;
17
+ export type _T_s_String = ($$_: _i_in._T_String, $$_p: {
18
+ readonly 'value serializers': _T_Value_Serializers;
19
+ }) => _i_out._T_Value;
20
+ export type _T_s_Structural_Token = ($$_: _i_in._T_Structural_Token, $$_p: {
21
+ readonly 'value serializers': _T_Value_Serializers;
22
+ }) => _i_out._T_Value;
23
+ export type _T_s_Value = ($$_: _i_in._T_Value, $$_p: {
24
+ readonly 'value serializers': _T_Value_Serializers;
25
+ }) => _i_out._T_Value;
26
+ export type Value_Serializers = _T_Value_Serializers;
27
+ export type s_Document = _T_s_Document;
28
+ export type s_Elements = _T_s_Elements;
29
+ export type s_Key_Value_Pairs = _T_s_Key_Value_Pairs;
30
+ export type s_String = _T_s_String;
31
+ export type s_Structural_Token = _T_s_Structural_Token;
32
+ export type s_Value = _T_s_Value;
33
+ export declare namespace _T_Value_Serializers {
34
+ namespace _boolean {
35
+ type CONTEXT = boolean;
36
+ namespace PARAMS {
37
+ }
38
+ type RESULT = string;
39
+ }
40
+ type _boolean = ($$_: boolean, $$_p: null) => string;
41
+ namespace custom_numbers {
42
+ }
43
+ type custom_numbers = null;
44
+ namespace default_number {
45
+ type CONTEXT = number;
46
+ namespace PARAMS {
47
+ }
48
+ type RESULT = string;
49
+ }
50
+ type default_number = ($$_: number, $$_p: null) => string;
51
+ }
52
+ export declare namespace _T_s_Document {
53
+ namespace CONTEXT {
54
+ }
55
+ type CONTEXT = _i_in._T_Document;
56
+ namespace PARAMS {
57
+ namespace value_serializers {
58
+ }
59
+ type value_serializers = _T_Value_Serializers;
60
+ }
61
+ namespace RESULT {
62
+ }
63
+ type RESULT = _i_out._T_Value;
64
+ }
65
+ export declare namespace _T_s_Elements {
66
+ namespace CONTEXT {
67
+ }
68
+ type CONTEXT = _i_in._T_Elements;
69
+ namespace PARAMS {
70
+ namespace value_serializers {
71
+ }
72
+ type value_serializers = _T_Value_Serializers;
73
+ }
74
+ namespace RESULT {
75
+ }
76
+ type RESULT = _i_out._T_Value;
77
+ }
78
+ export declare namespace _T_s_Key_Value_Pairs {
79
+ namespace CONTEXT {
80
+ }
81
+ type CONTEXT = _i_in._T_Key_Value_Pairs;
82
+ namespace PARAMS {
83
+ namespace value_serializers {
84
+ }
85
+ type value_serializers = _T_Value_Serializers;
86
+ }
87
+ namespace RESULT {
88
+ }
89
+ type RESULT = _i_out._T_Value;
90
+ }
91
+ export declare namespace _T_s_String {
92
+ namespace CONTEXT {
93
+ }
94
+ type CONTEXT = _i_in._T_String;
95
+ namespace PARAMS {
96
+ namespace value_serializers {
97
+ }
98
+ type value_serializers = _T_Value_Serializers;
99
+ }
100
+ namespace RESULT {
101
+ }
102
+ type RESULT = _i_out._T_Value;
103
+ }
104
+ export declare namespace _T_s_Structural_Token {
105
+ namespace CONTEXT {
106
+ }
107
+ type CONTEXT = _i_in._T_Structural_Token;
108
+ namespace PARAMS {
109
+ namespace value_serializers {
110
+ }
111
+ type value_serializers = _T_Value_Serializers;
112
+ }
113
+ namespace RESULT {
114
+ }
115
+ type RESULT = _i_out._T_Value;
116
+ }
117
+ export declare namespace _T_s_Value {
118
+ namespace CONTEXT {
119
+ }
120
+ type CONTEXT = _i_in._T_Value;
121
+ namespace PARAMS {
122
+ namespace value_serializers {
123
+ }
124
+ type value_serializers = _T_Value_Serializers;
125
+ }
126
+ namespace RESULT {
127
+ }
128
+ type RESULT = _i_out._T_Value;
129
+ }
130
+ export declare namespace Value_Serializers {
131
+ namespace _boolean {
132
+ type CONTEXT = boolean;
133
+ namespace PARAMS {
134
+ }
135
+ type RESULT = string;
136
+ }
137
+ type _boolean = ($$_: boolean, $$_p: null) => string;
138
+ namespace custom_numbers {
139
+ }
140
+ type custom_numbers = null;
141
+ namespace default_number {
142
+ type CONTEXT = number;
143
+ namespace PARAMS {
144
+ }
145
+ type RESULT = string;
146
+ }
147
+ type default_number = ($$_: number, $$_p: null) => string;
148
+ }
149
+ export declare namespace s_Document {
150
+ namespace CONTEXT {
151
+ }
152
+ type CONTEXT = _i_in._T_Document;
153
+ namespace PARAMS {
154
+ namespace value_serializers {
155
+ }
156
+ type value_serializers = _T_Value_Serializers;
157
+ }
158
+ namespace RESULT {
159
+ }
160
+ type RESULT = _i_out._T_Value;
161
+ }
162
+ export declare namespace s_Elements {
163
+ namespace CONTEXT {
164
+ }
165
+ type CONTEXT = _i_in._T_Elements;
166
+ namespace PARAMS {
167
+ namespace value_serializers {
168
+ }
169
+ type value_serializers = _T_Value_Serializers;
170
+ }
171
+ namespace RESULT {
172
+ }
173
+ type RESULT = _i_out._T_Value;
174
+ }
175
+ export declare namespace s_Key_Value_Pairs {
176
+ namespace CONTEXT {
177
+ }
178
+ type CONTEXT = _i_in._T_Key_Value_Pairs;
179
+ namespace PARAMS {
180
+ namespace value_serializers {
181
+ }
182
+ type value_serializers = _T_Value_Serializers;
183
+ }
184
+ namespace RESULT {
185
+ }
186
+ type RESULT = _i_out._T_Value;
187
+ }
188
+ export declare namespace s_String {
189
+ namespace CONTEXT {
190
+ }
191
+ type CONTEXT = _i_in._T_String;
192
+ namespace PARAMS {
193
+ namespace value_serializers {
194
+ }
195
+ type value_serializers = _T_Value_Serializers;
196
+ }
197
+ namespace RESULT {
198
+ }
199
+ type RESULT = _i_out._T_Value;
200
+ }
201
+ export declare namespace s_Structural_Token {
202
+ namespace CONTEXT {
203
+ }
204
+ type CONTEXT = _i_in._T_Structural_Token;
205
+ namespace PARAMS {
206
+ namespace value_serializers {
207
+ }
208
+ type value_serializers = _T_Value_Serializers;
209
+ }
210
+ namespace RESULT {
211
+ }
212
+ type RESULT = _i_out._T_Value;
213
+ }
214
+ export declare namespace s_Value {
215
+ namespace CONTEXT {
216
+ }
217
+ type CONTEXT = _i_in._T_Value;
218
+ namespace PARAMS {
219
+ namespace value_serializers {
220
+ }
221
+ type value_serializers = _T_Value_Serializers;
222
+ }
223
+ namespace RESULT {
224
+ }
225
+ type RESULT = _i_out._T_Value;
226
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvZ2VuZXJhdGVkL2ludGVyZmFjZS9zY2hlbWFzL2lkZS9yZXNvbHZlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFyc2hhbGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvZ2VuZXJhdGVkL2ludGVyZmFjZS9zY2hlbWFzL2FzdC9tYXJzaGFsbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=