astn 0.113.30 → 0.113.31

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 (84) hide show
  1. package/dist/implementation/manual/schemas/authoring_parse_result/serializers.d.ts +1 -1
  2. package/dist/implementation/manual/schemas/authoring_parse_result/transformers/fountain_pen.d.ts +2 -2
  3. package/dist/implementation/manual/schemas/authoring_parse_result/transformers/fountain_pen.js +20 -8
  4. package/dist/implementation/manual/schemas/authoring_parse_tree/deserializers.d.ts +2 -2
  5. package/dist/implementation/manual/schemas/authoring_parse_tree/deserializers.js +2 -7
  6. package/dist/implementation/manual/schemas/authoring_parse_tree/productions/token.d.ts +15 -15
  7. package/dist/implementation/manual/schemas/authoring_parse_tree/productions/token.js +39 -39
  8. package/dist/implementation/manual/schemas/authoring_parse_tree/transformers/ide.d.ts +2 -2
  9. package/dist/implementation/manual/schemas/authoring_parse_tree/transformers/ide.js +24 -24
  10. package/dist/implementation/manual/schemas/authoring_parse_tree/transformers/json_target.d.ts +1 -1
  11. package/dist/implementation/manual/schemas/authoring_parse_tree/transformers/json_target.js +21 -21
  12. package/dist/implementation/manual/schemas/authoring_parse_tree/transformers/token.d.ts +1 -1
  13. package/dist/implementation/manual/schemas/authoring_parse_tree/transformers/token.js +21 -21
  14. package/dist/implementation/manual/schemas/authoring_target/transformers/fountain_pen_block.js +139 -106
  15. package/dist/implementation/manual/schemas/sealed_target/serializers.d.ts +1 -1
  16. package/dist/implementation/manual/schemas/sealed_target/transformers/fountain_pen_block.d.ts +2 -2
  17. package/dist/implementation/manual/schemas/sealed_target/transformers/fountain_pen_block.js +30 -25
  18. package/dist/implementation/manual/schemas/token/productions/annotated_character.d.ts +3 -3
  19. package/dist/implementation/manual/schemas/token/productions/annotated_character.js +7 -7
  20. package/dist/implementation/manual/text_to_text/convert_to_json.js +2 -2
  21. package/dist/interface/generated/pareto/schemas/astn_schema/data/resolved.d.ts +150 -0
  22. package/dist/interface/generated/pareto/schemas/astn_schema/data/resolved.js +3 -0
  23. package/dist/interface/generated/pareto/schemas/astn_schema/data/unresolved.d.ts +270 -0
  24. package/dist/interface/generated/pareto/schemas/astn_schema/data/unresolved.js +3 -0
  25. package/dist/interface/generated/pareto/schemas/astn_schema/migrate_boilerplate.d.ts +2 -2
  26. package/dist/interface/generated/pareto/schemas/astn_schema/resolve.d.ts +192 -0
  27. package/dist/interface/generated/pareto/schemas/astn_schema/resolve.js +3 -0
  28. package/dist/interface/generated/pareto/schemas/authoring_target/data.d.ts +102 -0
  29. package/dist/interface/generated/pareto/schemas/authoring_target/data.js +3 -0
  30. package/dist/interface/generated/pareto/schemas/authoring_target/migrate_boilerplate.d.ts +2 -2
  31. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/data.d.ts +71 -0
  32. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/data.js +3 -0
  33. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/data_types/resolve.d.ts +1 -0
  34. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/data_types/resolve.js +3 -0
  35. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/data_types/source.d.ts +63 -0
  36. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/data_types/source.js +3 -0
  37. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/data_types/target.d.ts +63 -0
  38. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/data_types/target.js +3 -0
  39. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/deserialize.d.ts +9 -0
  40. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/deserialize.js +3 -0
  41. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/migrate_boilerplate.d.ts +31 -0
  42. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/migrate_boilerplate.js +3 -0
  43. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/serialize.d.ts +9 -0
  44. package/dist/interface/generated/pareto/schemas/deserialize_parse_tree/serialize.js +3 -0
  45. package/dist/interface/generated/pareto/schemas/ide/data.d.ts +43 -0
  46. package/dist/interface/generated/pareto/schemas/ide/data.js +3 -0
  47. package/dist/interface/generated/pareto/schemas/ide/migrate_boilerplate.d.ts +2 -2
  48. package/dist/interface/generated/pareto/schemas/parse_tree/data.d.ts +182 -0
  49. package/dist/interface/generated/pareto/schemas/parse_tree/data.js +3 -0
  50. package/dist/interface/generated/pareto/schemas/parse_tree/data_types/resolve.d.ts +1 -0
  51. package/dist/interface/generated/pareto/schemas/parse_tree/data_types/resolve.js +3 -0
  52. package/dist/interface/generated/pareto/schemas/parse_tree/data_types/source.d.ts +183 -0
  53. package/dist/interface/generated/pareto/schemas/parse_tree/data_types/source.js +3 -0
  54. package/dist/interface/generated/pareto/schemas/parse_tree/data_types/target.d.ts +183 -0
  55. package/dist/interface/generated/pareto/schemas/parse_tree/data_types/target.js +3 -0
  56. package/dist/interface/generated/pareto/schemas/parse_tree/deserialize.d.ts +58 -0
  57. package/dist/interface/generated/pareto/schemas/parse_tree/deserialize.js +3 -0
  58. package/dist/interface/generated/pareto/schemas/parse_tree/migrate_boilerplate.d.ts +52 -0
  59. package/dist/interface/generated/pareto/schemas/parse_tree/migrate_boilerplate.js +3 -0
  60. package/dist/interface/generated/pareto/schemas/parse_tree/serialize.d.ts +58 -0
  61. package/dist/interface/generated/pareto/schemas/parse_tree/serialize.js +3 -0
  62. package/dist/interface/generated/pareto/schemas/sealed_target/data.d.ts +48 -0
  63. package/dist/interface/generated/pareto/schemas/sealed_target/data.js +3 -0
  64. package/dist/interface/generated/pareto/schemas/sealed_target/migrate_boilerplate.d.ts +2 -2
  65. package/dist/interface/generated/pareto/schemas/token/data.d.ts +119 -0
  66. package/dist/interface/generated/pareto/schemas/token/data.js +3 -0
  67. package/dist/interface/generated/pareto/schemas/token/migrate_boilerplate.d.ts +11 -11
  68. package/dist/interface/signatures/transformers/authoring_parse_tree/ide.d.ts +3 -3
  69. package/dist/interface/signatures/transformers/authoring_parse_tree/json_target.d.ts +2 -2
  70. package/dist/interface/signatures/transformers/authoring_parse_tree/token.d.ts +2 -2
  71. package/dist/interface/signatures/transformers/authoring_target/fountain_pen_block.d.ts +2 -2
  72. package/dist/interface/signatures/transformers/parse_tree/ide.d.ts +17 -0
  73. package/dist/interface/signatures/transformers/parse_tree/ide.js +3 -0
  74. package/dist/interface/signatures/transformers/parse_tree/json_target.d.ts +7 -0
  75. package/dist/interface/signatures/transformers/parse_tree/json_target.js +3 -0
  76. package/dist/interface/signatures/transformers/parse_tree/token.d.ts +4 -0
  77. package/dist/interface/signatures/transformers/parse_tree/token.js +3 -0
  78. package/dist/modules/common_tool_signatures/interface/to_be_generated/file_in_file_out.d.ts +3 -3
  79. package/dist/modules/pareto-json/implementation/manual/schemas/json/serializers.d.ts +1 -1
  80. package/dist/modules/pareto-json/implementation/manual/schemas/json/transformers/fountain_pen_block.d.ts +2 -2
  81. package/dist/modules/pareto-json/shorthands/json.d.ts +1 -1
  82. package/dist/shorthands/parse_result.d.ts +3 -4
  83. package/dist/shorthands/parse_result.js +9 -15
  84. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import * as _pi from 'pareto-core-interface';
2
+ import * as d_in from "../../../generated/pareto/schemas/parse_tree/data";
3
+ import * as d_out from "pareto-json/dist/interface/generated/pareto/schemas/json/data";
4
+ export type Value = _pi.Transformer<d_in.Value, d_out.Value>;
5
+ export type Key_Value_Pairs = _pi.Transformer<d_in.Key_Value_Pairs, d_out.Value._object.key_value_array>;
6
+ export type Elements = _pi.Transformer<d_in.Elements, d_out.Value.array>;
7
+ export type Document = _pi.Transformer<d_in.Document, d_out.Document>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbl90YXJnZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvaW50ZXJmYWNlL3NpZ25hdHVyZXMvdHJhbnNmb3JtZXJzL3BhcnNlX3RyZWUvanNvbl90YXJnZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -0,0 +1,4 @@
1
+ import * as _pi from 'pareto-core-interface';
2
+ import * as d_in from "../../../generated/pareto/schemas/parse_tree/data";
3
+ import * as d_out from "../../../generated/pareto/schemas/token/data";
4
+ export type Value = _pi.Transformer<d_in.Value, d_out.Range>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvaW50ZXJmYWNlL3NpZ25hdHVyZXMvdHJhbnNmb3JtZXJzL3BhcnNlX3RyZWUvdG9rZW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
@@ -1,6 +1,6 @@
1
- import * as d_path from "pareto-resources/dist/interface/generated/pareto/schemas/path/data_types/target";
2
- import * as d_read_file from "pareto-resources/dist/interface/generated/pareto/schemas/read_file/data_types/source";
3
- import * as d_write_file from "pareto-resources/dist/interface/generated/pareto/schemas/write_file/data_types/target";
1
+ import * as d_path from "pareto-resources/dist/interface/generated/pareto/schemas/path/data";
2
+ import * as d_read_file from "pareto-resources/dist/interface/generated/pareto/schemas/read_file/data";
3
+ import * as d_write_file from "pareto-resources/dist/interface/generated/pareto/schemas/write_file/data";
4
4
  export type Path_Error = ['missing', null] | ['not valid', null];
5
5
  export type Error = ['in path', Path_Error] | ['out path', Path_Error] | ['too many arguments', null];
6
6
  export type Command_Error = ['command line arguments', Error] | ['reading file', d_read_file.Error] | ['deserializing', string] | ['writing file', d_write_file.Error];
@@ -1,4 +1,4 @@
1
- import * as d_in from "../../../../interface/generated/pareto/schemas/json/data_types/source";
1
+ import * as d_in from "../../../../interface/generated/pareto/schemas/json/data";
2
2
  export declare const Document: ($: d_in.Document, $p: {
3
3
  "indentation": string;
4
4
  "newline": string;
@@ -1,4 +1,4 @@
1
- import * as d_in from "../../../../../interface/generated/pareto/schemas/json/data_types/source";
2
- import * as d_out from "pareto-fountain-pen/dist/interface/generated/pareto/schemas/block/data_types/target";
1
+ import * as d_in from "../../../../../interface/generated/pareto/schemas/json/data";
2
+ import * as d_out from "pareto-fountain-pen/dist/interface/generated/pareto/schemas/block/data";
3
3
  export declare const Value: ($: d_in.Value) => d_out.Block_Part;
4
4
  export declare const Document: ($: d_in.Document) => d_out.Group;
@@ -1,5 +1,5 @@
1
1
  import * as _p from 'pareto-core-shorthands/dist/unconstrained';
2
- import * as d_out from "../interface/generated/pareto/schemas/json/data_types/target";
2
+ import * as d_out from "../interface/generated/pareto/schemas/json/data";
3
3
  export declare namespace v {
4
4
  const string: (value: string) => d_out.Value;
5
5
  const null_: () => d_out.Value;
@@ -1,4 +1,3 @@
1
- import * as d_target from "../interface/generated/pareto/schemas/authoring_parse_result/data_types/target";
2
- import * as d_target_token from "../interface/generated/pareto/schemas/token/data_types/source";
3
- export declare const parse_error: (type: d_target.Error._type, range: d_target_token.Range) => d_target.Error;
4
- export declare const lexer_error: (type: d_target.Error._type.lexer, range: d_target_token.Range) => d_target.Error;
1
+ import * as d_target from "../interface/generated/pareto/schemas/deserialize_parse_tree/data";
2
+ import * as d_target_token from "../interface/generated/pareto/schemas/token/data";
3
+ export declare const lexer_error: (type: d_target.Lexer_Error._type, range: d_target_token.Range) => d_target.Error;
@@ -23,16 +23,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.lexer_error = exports.parse_error = void 0;
26
+ exports.lexer_error = void 0;
27
27
  const _p = __importStar(require("pareto-core-transformer"));
28
- const parse_error = (type, range) => ({
29
- 'type': type,
30
- 'range': _p.optional.set({
31
- 'start': range.start,
32
- 'end': range.end,
33
- })
34
- });
35
- exports.parse_error = parse_error;
36
28
  // export const unexpected_token = (
37
29
  // found: d_target_token.Annotated_Token,
38
30
  // expected: _pi.List<d_target.Error._type.SG.parser.expected.L>,
@@ -49,11 +41,13 @@ exports.parse_error = parse_error;
49
41
  // }
50
42
  // )
51
43
  const lexer_error = (type, range) => ({
52
- 'type': ['lexer', type],
53
- 'range': _p.optional.set({
54
- 'start': range.start,
55
- 'end': range.end,
56
- })
44
+ 'type': ['lexer', {
45
+ 'type': type,
46
+ 'range': _p.optional.set({
47
+ 'start': range.start,
48
+ 'end': range.end,
49
+ }),
50
+ }],
57
51
  });
58
52
  exports.lexer_error = lexer_error;
59
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VfcmVzdWx0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3Nob3J0aGFuZHMvcGFyc2VfcmVzdWx0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNERBQTZDO0FBT3RDLE1BQU0sV0FBVyxHQUFHLENBQ3ZCLElBQTBCLEVBQzFCLEtBQTJCLEVBQ2IsRUFBRSxDQUFDLENBQUM7SUFDbEIsTUFBTSxFQUFFLElBQUk7SUFDWixPQUFPLEVBQUUsRUFBRSxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUM7UUFDckIsT0FBTyxFQUFFLEtBQUssQ0FBQyxLQUFLO1FBQ3BCLEtBQUssRUFBRSxLQUFLLENBQUMsR0FBRztLQUNuQixDQUFDO0NBQ0wsQ0FBQyxDQUFBO0FBVFcsUUFBQSxXQUFXLGVBU3RCO0FBRUYsb0NBQW9DO0FBQ3BDLDZDQUE2QztBQUM3QyxxRUFBcUU7QUFDckUsb0NBQW9DO0FBQ3BDLG1CQUFtQjtBQUNuQixnQ0FBZ0M7QUF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DLEtBQTJCLEVBQ2IsRUFBRSxDQUFDLENBQUM7SUFDbEIsTUFBTSxFQUFFLENBQUMsT0FBTyxFQUFFO1lBQ2QsTUFBTSxFQUFFLElBQUk7WUFDWixPQUFPLEVBQUUsRUFBRSxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUM7Z0JBQ3JCLE9BQU8sRUFBRSxLQUFLLENBQUMsS0FBSztnQkFDcEIsS0FBSyxFQUFFLEtBQUssQ0FBQyxHQUFHO2FBQ25CLENBQUM7U0FDTCxDQUFDO0NBQ0wsQ0FBQyxDQUFBO0FBWFcsUUFBQSxXQUFXLGVBV3RCIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astn",
3
- "version": "0.113.30",
3
+ "version": "0.113.31",
4
4
  "description": "The TypeScript library for parsing and formatting ASTN (Abstract Syntax Tree Notation) - a human-editable data format for structured content",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",