astn 0.110.10 → 0.110.12

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 (88) hide show
  1. package/dist/bin/validate_astn.js +18 -8
  2. package/dist/generated/generic/resolve.d.ts +90 -0
  3. package/dist/generated/generic/resolve.js +259 -0
  4. package/dist/generated/implementation/schemas/ast/migration_boilerplate.d.ts +13 -0
  5. package/dist/generated/implementation/schemas/ast/migration_boilerplate.js +174 -0
  6. package/dist/generated/implementation/schemas/ide/migration_boilerplate.d.ts +2 -0
  7. package/dist/generated/implementation/schemas/ide/migration_boilerplate.js +56 -0
  8. package/dist/generated/implementation/schemas/parse_result/migration_boilerplate.d.ts +6 -0
  9. package/dist/generated/implementation/schemas/parse_result/migration_boilerplate.js +136 -0
  10. package/dist/generated/implementation/schemas/target/migration_boilerplate.d.ts +3 -0
  11. package/dist/generated/implementation/schemas/target/migration_boilerplate.js +73 -0
  12. package/dist/generated/interface/core/poormans_parser.d.ts +184 -0
  13. package/dist/generated/interface/core/poormans_parser.js +3 -0
  14. package/dist/generated/interface/core/resolved.d.ts +100 -0
  15. package/dist/generated/interface/core/resolved.js +3 -0
  16. package/dist/generated/interface/core/unresolved.d.ts +35 -0
  17. package/dist/generated/interface/core/unresolved.js +3 -0
  18. package/dist/generated/interface/schemas/ast/migration_boilerplate.d.ts +266 -0
  19. package/dist/generated/interface/schemas/ast/migration_boilerplate.js +3 -0
  20. package/dist/generated/interface/schemas/ast/poormans_parser.d.ts +1087 -0
  21. package/dist/generated/interface/schemas/ast/poormans_parser.js +3 -0
  22. package/dist/generated/interface/schemas/ast/resolved.d.ts +1087 -0
  23. package/dist/generated/interface/schemas/ast/resolved.js +3 -0
  24. package/dist/generated/interface/schemas/ast/unresolved.d.ts +1087 -0
  25. package/dist/generated/interface/schemas/ast/unresolved.js +3 -0
  26. package/dist/generated/interface/schemas/ide/migration_boilerplate.d.ts +24 -0
  27. package/dist/generated/interface/schemas/ide/migration_boilerplate.js +3 -0
  28. package/dist/generated/interface/schemas/ide/poormans_parser.d.ts +161 -0
  29. package/dist/generated/interface/schemas/ide/poormans_parser.js +3 -0
  30. package/dist/generated/interface/schemas/ide/resolved.d.ts +161 -0
  31. package/dist/generated/interface/schemas/ide/resolved.js +3 -0
  32. package/dist/generated/interface/schemas/ide/unresolved.d.ts +161 -0
  33. package/dist/generated/interface/schemas/ide/unresolved.js +3 -0
  34. package/dist/generated/interface/schemas/parse_result/migration_boilerplate.d.ts +112 -0
  35. package/dist/generated/interface/schemas/parse_result/migration_boilerplate.js +3 -0
  36. package/dist/generated/interface/schemas/parse_result/poormans_parser.d.ts +416 -0
  37. package/dist/generated/interface/schemas/parse_result/poormans_parser.js +3 -0
  38. package/dist/generated/interface/schemas/parse_result/resolved.d.ts +416 -0
  39. package/dist/generated/interface/schemas/parse_result/resolved.js +3 -0
  40. package/dist/generated/interface/schemas/parse_result/unresolved.d.ts +416 -0
  41. package/dist/generated/interface/schemas/parse_result/unresolved.js +3 -0
  42. package/dist/generated/interface/schemas/target/migration_boilerplate.d.ts +46 -0
  43. package/dist/generated/interface/schemas/target/migration_boilerplate.js +3 -0
  44. package/dist/generated/interface/schemas/target/poormans_parser.d.ts +186 -0
  45. package/dist/generated/interface/schemas/target/poormans_parser.js +3 -0
  46. package/dist/generated/interface/schemas/target/resolved.d.ts +186 -0
  47. package/dist/generated/interface/schemas/target/resolved.js +3 -0
  48. package/dist/generated/interface/schemas/target/unresolved.d.ts +186 -0
  49. package/dist/generated/interface/schemas/target/unresolved.js +3 -0
  50. package/dist/index.d.ts +3 -4
  51. package/dist/index.js +22 -13
  52. package/dist/lib/transformations/create_error_message.d.ts +2 -2
  53. package/dist/lib/transformations/create_error_message.js +33 -9
  54. package/dist/lib/transformations/format.d.ts +2 -2
  55. package/dist/lib/transformations/format.js +18 -14
  56. package/dist/lib/transformations/parse.d.ts +4 -4
  57. package/dist/lib/transformations/parse.js +36 -26
  58. package/dist/lib/transformations/parse_generic.d.ts +8 -9
  59. package/dist/lib/transformations/parse_generic.js +18 -8
  60. package/package.json +4 -2
  61. package/dist/create_error_message.d.ts +0 -3
  62. package/dist/create_error_message.js +0 -66
  63. package/dist/format.d.ts +0 -65
  64. package/dist/format.js +0 -179
  65. package/dist/lib/create_error_message.d.ts +0 -5
  66. package/dist/lib/create_error_message.js +0 -75
  67. package/dist/lib/format.d.ts +0 -42
  68. package/dist/lib/format.js +0 -172
  69. package/dist/lib/index.d.ts +0 -4
  70. package/dist/lib/index.js +0 -34
  71. package/dist/lib/parse.d.ts +0 -64
  72. package/dist/lib/parse.js +0 -865
  73. package/dist/lib/types/ast.d.ts +0 -121
  74. package/dist/lib/types/ast.js +0 -3
  75. package/dist/lib/types/ide.d.ts +0 -21
  76. package/dist/lib/types/ide.js +0 -3
  77. package/dist/lib/types/parse_result.d.ts +0 -30
  78. package/dist/lib/types/parse_result.js +0 -3
  79. package/dist/lib/types/tokenize_result.d.ts +0 -14
  80. package/dist/lib/types/tokenize_result.js +0 -3
  81. package/dist/lib/types.d.ts +0 -123
  82. package/dist/lib/types.js +0 -3
  83. package/dist/parse.d.ts +0 -88
  84. package/dist/parse.js +0 -851
  85. package/dist/types.d.ts +0 -127
  86. package/dist/types.js +0 -3
  87. package/dist/validate_astn.d.ts +0 -1
  88. package/dist/validate_astn.js +0 -45
package/dist/types.d.ts DELETED
@@ -1,127 +0,0 @@
1
- import * as _et from 'exupery-core-types';
2
- export type Location = {
3
- readonly 'relative': Relative_Location;
4
- readonly 'absolute': number;
5
- };
6
- export type Range = {
7
- readonly 'start': Location;
8
- readonly 'end': Location;
9
- };
10
- export type Relative_Location = {
11
- readonly 'line': number;
12
- readonly 'column': number;
13
- };
14
- export type Document = {
15
- 'header': _et.Optional_Value<{
16
- '!': Structural_Token;
17
- 'value': Value;
18
- }>;
19
- 'content': Value;
20
- };
21
- export type Value = {
22
- 'start': Location;
23
- 'end': Location;
24
- 'type': Value_Type;
25
- };
26
- export type Value_Type = ['string', StringX] | [
27
- 'indexed collection',
28
- [
29
- 'dictionary',
30
- {
31
- '{': Structural_Token;
32
- 'entries': Key_Value_Pairs;
33
- '}': Structural_Token;
34
- }
35
- ] | [
36
- 'verbose group',
37
- {
38
- '(': Structural_Token;
39
- 'entries': Key_Value_Pairs;
40
- ')': Structural_Token;
41
- }
42
- ]
43
- ] | [
44
- 'ordered collection',
45
- [
46
- 'list',
47
- {
48
- '[': Structural_Token;
49
- 'elements': Elements;
50
- ']': Structural_Token;
51
- }
52
- ] | [
53
- 'concise group',
54
- {
55
- '<': Structural_Token;
56
- 'elements': Elements;
57
- '>': Structural_Token;
58
- }
59
- ]
60
- ] | [
61
- 'include',
62
- {
63
- '@': Structural_Token;
64
- 'path': StringX;
65
- }
66
- ] | [
67
- 'tagged value',
68
- {
69
- '|': Structural_Token;
70
- 'state': StringX;
71
- 'value': Value;
72
- }
73
- ] | [
74
- 'not set',
75
- {
76
- '~': Structural_Token;
77
- }
78
- ] | [
79
- 'set optional value',
80
- {
81
- '*': Structural_Token;
82
- 'value': Value;
83
- }
84
- ];
85
- export type StringX = {
86
- readonly 'trailing trivia': Trivia;
87
- readonly 'start': Location;
88
- readonly 'value': string;
89
- readonly 'type': String_Type;
90
- readonly 'end': Location;
91
- };
92
- export type String_Type = ['quoted', null] | ['apostrophed', null] | ['undelimited', null] | ['backticked', null];
93
- export type Key_Value_Pairs = _et.Array<Key_Value_Pair>;
94
- export type Element = {
95
- 'value': Value;
96
- ',': _et.Optional_Value<Structural_Token>;
97
- };
98
- export type Elements = _et.Array<Element>;
99
- export type Key_Value_Pair = {
100
- 'key': StringX;
101
- 'value': _et.Optional_Value<{
102
- ':': Structural_Token;
103
- 'value': Value;
104
- }>;
105
- ',': _et.Optional_Value<Structural_Token>;
106
- };
107
- export type Structural_Token = {
108
- readonly 'trailing trivia': Trivia;
109
- readonly 'start': Location;
110
- readonly 'end': Location;
111
- };
112
- export type Whitespace = {
113
- 'start': Location;
114
- 'end': Location;
115
- 'value': string;
116
- };
117
- export type Trivia = {
118
- 'start': Location;
119
- 'leading whitespace': Whitespace;
120
- 'comments': _et.Array<{
121
- 'type': ['line', null] | ['block', null];
122
- 'content': string;
123
- 'begin': Location;
124
- 'end': Location;
125
- 'trailing whitespace': Whitespace;
126
- }>;
127
- };
package/dist/types.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -1 +0,0 @@
1
- export {};
@@ -1,45 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const _er = __importStar(require("exupery-core-resources"));
27
- const _ea = __importStar(require("exupery-core-alg"));
28
- const parse = __importStar(require("./lib/parse"));
29
- const create_error_message = __importStar(require("./lib/create_error_message"));
30
- _er.temp_resources.process["get instream data"](($) => {
31
- _ea.cc(parse.Parser.parse($, {
32
- 'tab size': 4,
33
- }), ($) => {
34
- switch ($[0]) {
35
- case 'failure': return _ea.ss($, ($) => {
36
- _er.temp_resources.console.error(`Parse Error: ${create_error_message.Parse_Error($, { 'position info': ['one based', null] })}`);
37
- });
38
- case 'success': return _ea.ss($, ($) => {
39
- _er.temp_resources.console.log(`document is valid ASTN`);
40
- });
41
- default: return _ea.au($[0]);
42
- }
43
- });
44
- });
45
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGVfYXN0bi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy92YWxpZGF0ZV9hc3RuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw0REFBNkM7QUFDN0Msc0RBQXVDO0FBRXZDLG1EQUFvQztBQUNwQyxpRkFBa0U7QUFHbEUsR0FBRyxDQUFDLGNBQWMsQ0FBQyxPQUFPLENBQUMsbUJBQW1CLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFO0lBQ2xELEdBQUcsQ0FBQyxFQUFFLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQ3JCLENBQUMsRUFDRDtRQUNJLFVBQVUsRUFBRSxDQUFDO0tBQ2hCLENBQ0osRUFBRSxDQUFDLENBQUMsRUFBRSxFQUFFO1FBQ0wsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztZQUNYLEtBQUssU0FBUyxDQUFDLENBQUMsT0FBTyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxFQUFFO2dCQUNuQyxHQUFHLENBQUMsY0FBYyxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsZ0JBQWdCLG9CQUFvQixDQUFDLFdBQVcsQ0FBQyxDQUFDLEVBQUUsRUFBRSxlQUFlLEVBQUUsQ0FBQyxXQUFXLEVBQUUsSUFBSSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQTtZQUNySSxDQUFDLENBQUMsQ0FBQTtZQUNGLEtBQUssU0FBUyxDQUFDLENBQUMsT0FBTyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxFQUFFO2dCQUNuQyxHQUFHLENBQUMsY0FBYyxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsd0JBQXdCLENBQUMsQ0FBQTtZQUM1RCxDQUFDLENBQUMsQ0FBQTtZQUNGLE9BQU8sQ0FBQyxDQUFDLE9BQU8sR0FBRyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUNoQyxDQUFDO0lBQ0wsQ0FBQyxDQUFDLENBQUE7QUFDTixDQUFDLENBQUMsQ0FBQSJ9