astn 0.113.67 → 0.113.69

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.
@@ -6,5 +6,11 @@ export type Parameters = {
6
6
  'indentation': string;
7
7
  'newline': string;
8
8
  };
9
+ export type Doc_Parameters = {
10
+ 'indentation': string;
11
+ 'newline': string;
12
+ };
9
13
  export type Value = _pi.Transformer_With_Parameter<d_in.Value, d_out.Text, Parameters>;
14
+ export type Document = _pi.Transformer_With_Parameter<d_in.Document, d_out.Text, Doc_Parameters>;
15
+ export declare const Document: Document;
10
16
  export declare const Value: Value;
@@ -33,10 +33,15 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.Value = void 0;
36
+ exports.Value = exports.Document = void 0;
37
37
  //dependencies
38
38
  const t_to_fountain_pen = __importStar(require("./fountain_pen"));
39
39
  const t_fountain_pen_to_text = __importStar(require("pareto-fountain-pen/dist/implementation/manual/transformers/prose/text"));
40
+ const Document = ($, $p) => t_fountain_pen_to_text.Paragraph(t_to_fountain_pen.Document($), {
41
+ 'indentation': $p.indentation,
42
+ 'newline': $p.newline
43
+ });
44
+ exports.Document = Document;
40
45
  const Value = ($, $p) => t_fountain_pen_to_text.Phrase(t_to_fountain_pen.Value($, {
41
46
  'in concise group': false,
42
47
  'write delimiters': $p['write delimiters']
@@ -45,4 +50,4 @@ const Value = ($, $p) => t_fountain_pen_to_text.Phrase(t_to_fountain_pen.Value($
45
50
  'newline': $p.newline
46
51
  });
47
52
  exports.Value = Value;
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9pbXBsZW1lbnRhdGlvbi9tYW51YWwvdHJhbnNmb3JtZXJzL2F1dGhvcmluZ190YXJnZXQvdGV4dC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QUNKLEVBQ0Q7SUFDSSxhQUFhLEVBQUUsRUFBRSxDQUFDLFdBQVc7SUFDN0IsU0FBUyxFQUFFLEVBQUUsQ0FBQyxPQUFPO0NBQ3hCLENBQ0osQ0FBQTtBQVJZLFFBQUEsUUFBUSxZQVFwQjtBQUVNLE1BQU0sS0FBSyxHQUFVLENBQUMsQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLENBQUMsc0JBQXNCLENBQUMsTUFBTSxDQUNoRSxpQkFBaUIsQ0FBQyxLQUFLLENBQ25CLENBQUMsRUFDRDtJQUNJLGtCQUFrQixFQUFFLEtBQUs7SUFDekIsa0JBQWtCLEVBQUUsRUFBRSxDQUFDLGtCQUFrQixDQUFDO0NBQzdDLENBQ0osRUFDRDtJQUNJLGFBQWEsRUFBRSxFQUFFLENBQUMsV0FBVztJQUM3QixTQUFTLEVBQUUsRUFBRSxDQUFDLE9BQU87Q0FDeEIsQ0FDSixDQUFBO0FBWlksUUFBQSxLQUFLLFNBWWpCIn0=
@@ -0,0 +1,8 @@
1
+ import * as _pi from 'pareto-core/dist/interface';
2
+ import * as d_in from "astn-core/dist/interface/generated/liana/schemas/parse_tree/data";
3
+ import * as d_out from "pareto-fountain-pen/dist/interface/generated/liana/schemas/text/data";
4
+ export type Document = _pi.Transformer_With_Parameter<d_in.Document, d_out.Text, {
5
+ 'indentation': string;
6
+ 'newline': string;
7
+ }>;
8
+ export declare const Document: Document;
@@ -0,0 +1,44 @@
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 () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.Document = void 0;
37
+ //dependencies
38
+ const t_authoring_target_to_text = __importStar(require("../authoring_target/text"));
39
+ const t_to_authoring_target = __importStar(require("./authoring_target"));
40
+ const Document = ($, $p) => {
41
+ return t_authoring_target_to_text.Document(t_to_authoring_target.Document($), $p);
42
+ };
43
+ exports.Document = Document;
44
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9pbXBsZW1lbnRhdGlvbi9tYW51YWwvdHJhbnNmb3JtZXJzL3BhcnNlX3RyZWUvdGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFTQSxjQUFjO0FBQ2QscUZBQXNFO0FBQ3RFLDBFQUEyRDtBQUlwRCxNQUFNLFFBQVEsR0FBYSxDQUFDLENBQUMsRUFBRSxFQUFFLEVBQUUsRUFBRTtJQUN4QyxPQUFPLDBCQUEwQixDQUFDLFFBQVEsQ0FDdEMscUJBQXFCLENBQUMsUUFBUSxDQUMxQixDQUFDLENBQ0osRUFDRCxFQUFFLENBQ0wsQ0FBQTtBQUNMLENBQUMsQ0FBQTtBQVBZLFFBQUEsUUFBUSxZQU9wQiJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astn",
3
- "version": "0.113.67",
3
+ "version": "0.113.69",
4
4
  "author": "Corno",
5
5
  "license": "Apache-2.0",
6
6
  "description": "The TypeScript library for parsing and formatting ASTN (Abstract Syntax Tree Notation) - a human-editable data format for structured content",