astn 0.113.17 → 0.113.18
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.
- package/dist/bin/convert_to_json.js +3 -3
- package/dist/bin/validate_astn.js +3 -3
- package/dist/implementation/commands/convert_to_json.d.ts +2 -9
- package/dist/implementation/commands/convert_to_json.js +10 -9
- package/dist/implementation/commands/validate_astn.d.ts +2 -12
- package/dist/implementation/commands/validate_astn.js +12 -10
- package/dist/implementation/deserializers/schemas/annotated_characters.d.ts +7 -29
- package/dist/implementation/deserializers/schemas/annotated_characters.js +17 -13
- package/dist/implementation/deserializers/schemas/authoring_parse_tree.d.ts +6 -3
- package/dist/implementation/deserializers/schemas/authoring_parse_tree.js +4 -4
- package/dist/implementation/generated/pareto/generic/parse/ast.d.ts +5 -5
- package/dist/implementation/generated/pareto/generic/parse/ast.js +29 -29
- package/dist/implementation/generated/pareto/generic/parse/astn_parse_generic.d.ts +12 -9
- package/dist/implementation/generated/pareto/generic/parse/astn_parse_generic.js +26 -29
- package/dist/implementation/generated/pareto/generic/parse/parse.d.ts +1 -2
- package/dist/implementation/generated/pareto/generic/parse/parse.js +21 -32
- package/dist/implementation/generated/pareto/generic/parse/string_iterator.d.ts +1 -1
- package/dist/implementation/generated/pareto/generic/parse/string_iterator.js +5 -5
- package/dist/implementation/generated/pareto/generic/parse/token.d.ts +6 -5
- package/dist/implementation/generated/pareto/generic/parse/token.js +31 -30
- package/dist/implementation/generated/pareto/generic/resolve.d.ts +1 -1
- package/dist/implementation/generated/pareto/generic/resolve.js +17 -16
- package/dist/implementation/generated/pareto/generic/serialize.d.ts +2 -2
- package/dist/implementation/generated/pareto/generic/serialize.js +2 -2
- package/dist/implementation/generated/pareto/generic/unmarshall.d.ts +1 -1
- package/dist/implementation/generated/pareto/generic/unmarshall.js +28 -28
- package/dist/implementation/generated/pareto/schemas/astn_schema/marshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/astn_schema/resolve.js +87 -87
- package/dist/implementation/generated/pareto/schemas/astn_schema/unmarshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/authoring_parse_result/marshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/authoring_parse_result/unmarshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/authoring_parse_tree/marshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/authoring_parse_tree/unmarshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/authoring_target/marshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/authoring_target/unmarshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/ide/marshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/ide/unmarshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/sealed_target/marshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/sealed_target/unmarshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/token/marshall.js +2 -2
- package/dist/implementation/generated/pareto/schemas/token/unmarshall.js +2 -2
- package/dist/implementation/productions/schemas/authoring_parse_tree/token.d.ts +7 -8
- package/dist/implementation/productions/schemas/authoring_parse_tree/token.js +55 -55
- package/dist/implementation/productions/schemas/token/annotated_character.d.ts +9 -10
- package/dist/implementation/productions/schemas/token/annotated_character.js +14 -12
- package/dist/implementation/serializers/schemas/parse_result.js +14 -14
- package/dist/implementation/transformers/schemas/authoring_parse_tree/authoring_target.js +2 -2
- package/dist/implementation/transformers/schemas/authoring_parse_tree/ide.js +65 -68
- package/dist/implementation/transformers/schemas/authoring_parse_tree/json_target.js +23 -23
- package/dist/implementation/transformers/schemas/authoring_parse_tree/temp_value_range.js +24 -24
- package/dist/implementation/transformers/schemas/authoring_target/fountain_pen_block.d.ts +2 -2
- package/dist/implementation/transformers/schemas/authoring_target/fountain_pen_block.js +50 -53
- package/dist/implementation/transformers/schemas/sealed_target/fountain_pen_block.js +33 -35
- package/dist/interface/generated/pareto/core/astn_source.d.ts +1 -1
- package/dist/interface/generated/pareto/core/astn_target.d.ts +1 -1
- package/dist/interface/generated/pareto/core/parse_result.d.ts +1 -1
- package/dist/interface/generated/pareto/core/resolve.d.ts +6 -3
- package/dist/interface/generated/pareto/core/resolved.d.ts +1 -1
- package/dist/interface/generated/pareto/core/token.d.ts +1 -1
- package/dist/interface/generated/pareto/core/unconstrained.d.ts +1 -1
- package/dist/interface/generated/pareto/core/unresolved.d.ts +1 -1
- package/dist/interface/generated/pareto/schemas/astn_schema/data_types/resolve.d.ts +1 -1
- package/dist/interface/generated/pareto/schemas/authoring_parse_tree/data_types/source.d.ts +1 -1
- package/dist/interface/generated/pareto/schemas/authoring_parse_tree/data_types/target.d.ts +1 -1
- package/dist/interface/resources.d.ts +0 -0
- package/dist/interface/resources.js +2 -0
- package/dist/interface/signatures.d.ts +18 -0
- package/dist/interface/signatures.js +3 -0
- package/dist/interface/to_be_generated/annotated_characters.d.ts +10 -0
- package/dist/interface/to_be_generated/annotated_characters.js +3 -0
- package/dist/shorthands/parse_result.d.ts +2 -2
- package/package.json +5 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as _et from '
|
|
1
|
+
import * as _et from 'pareto-core-interface';
|
|
2
2
|
export type _T_Document = _T_Value;
|
|
3
3
|
export type _T_Value = readonly ['dictionary', _et.Dictionary<_T_Value>] | readonly ['list', _et.List<_T_Value>] | readonly ['nothing', null] | readonly [
|
|
4
4
|
'optional',
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import * as _et from '
|
|
1
|
+
import * as _et from 'pareto-core-interface';
|
|
2
2
|
export type Location_to_String<Source> = ($: Source) => string;
|
|
3
3
|
export type _T_Location_2_String<Source> = Location_to_String<Source>;
|
|
4
4
|
export type Non_Circular_Result<T> = ['error', ['circular', _et.List<string>]] | ['resolved', T];
|
|
5
|
-
export type
|
|
5
|
+
export type Lookup<T> = {
|
|
6
|
+
get_entry: (key: string) => _et.Optional_Value<T>;
|
|
7
|
+
};
|
|
8
|
+
export type Acyclic_Lookup<T> = _et.Optional_Value<Lookup<Non_Circular_Result<T>>>;
|
|
6
9
|
export type _T_Acyclic_Lookup<T> = Acyclic_Lookup<T>;
|
|
7
10
|
export type Possibly_Circular_Result<T> = _et.Circular_Dependency<T>;
|
|
8
|
-
export type Cyclic_Lookup<T> = _et.Optional_Value<
|
|
11
|
+
export type Cyclic_Lookup<T> = _et.Optional_Value<Lookup<Possibly_Circular_Result<T>>>;
|
|
9
12
|
export type _T_Cyclic_Lookup<T> = Cyclic_Lookup<T>;
|
|
10
13
|
export type Lookup_Stack<T> = _et.List<Acyclic_Lookup<T>>;
|
|
11
14
|
export type _T_Lookup_Stack<T> = Lookup_Stack<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as _et from '
|
|
1
|
+
import * as _et from 'pareto-core-interface';
|
|
2
2
|
export type _T_Derived_Reference<M_Source, T_Type> = T_Type;
|
|
3
3
|
export type _T_Dictionary<M_Source, T_D> = _et.Dictionary<T_D>;
|
|
4
4
|
export type _T_List<M_Source, T_L> = _et.List<T_L>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as _et from '
|
|
1
|
+
import * as _et from 'pareto-core-interface';
|
|
2
2
|
import * as _i_core from "../../../core/resolved";
|
|
3
3
|
import * as _i_imports_token from "../../token/data_types/source";
|
|
4
4
|
export type _T_Concrete_Value = _i_core._T_State_Group<null, readonly [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as _et from '
|
|
1
|
+
import * as _et from 'pareto-core-interface';
|
|
2
2
|
import * as _i_core from "../../../core/unconstrained";
|
|
3
3
|
import * as _i_imports_token from "../../token/data_types/target";
|
|
4
4
|
export type _T_Concrete_Value = _i_core._T_State_Group<null, readonly [
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as _pi from 'pareto-core-interface';
|
|
2
|
+
import * as resources_exupery from "exupery-resources/dist/interface/resources";
|
|
3
|
+
export declare namespace queries {
|
|
4
|
+
}
|
|
5
|
+
export declare namespace commands {
|
|
6
|
+
type convert_to_json = _pi.Command_Procedure<resources_exupery.commands.main, {
|
|
7
|
+
'log error': resources_exupery.commands.log_error;
|
|
8
|
+
'write to stdout': resources_exupery.commands.write_to_stdout;
|
|
9
|
+
}, {
|
|
10
|
+
'get instream data': resources_exupery.queries.get_instream_data;
|
|
11
|
+
}>;
|
|
12
|
+
type validate_astn = _pi.Command_Procedure<resources_exupery.commands.main, {
|
|
13
|
+
'log': resources_exupery.commands.log;
|
|
14
|
+
'log error': resources_exupery.commands.log_error;
|
|
15
|
+
}, {
|
|
16
|
+
'get instream data': resources_exupery.queries.get_instream_data;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lnbmF0dXJlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbnRlcmZhY2Uvc2lnbmF0dXJlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _pi from 'pareto-core-interface';
|
|
2
|
+
export type Annotated_Character = {
|
|
3
|
+
'code': number;
|
|
4
|
+
'location': {
|
|
5
|
+
'line': number;
|
|
6
|
+
'column': number;
|
|
7
|
+
};
|
|
8
|
+
'line indentation': number;
|
|
9
|
+
};
|
|
10
|
+
export type Annotated_Characters = _pi.List<Annotated_Character>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ub3RhdGVkX2NoYXJhY3RlcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW50ZXJmYWNlL3RvX2JlX2dlbmVyYXRlZC9hbm5vdGF0ZWRfY2hhcmFjdGVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _pi from 'pareto-core-interface';
|
|
2
2
|
import * as d_target from "../interface/generated/pareto/schemas/authoring_parse_result/data_types/target";
|
|
3
3
|
import * as d_target_token from "../interface/generated/pareto/schemas/token/data_types/source";
|
|
4
4
|
export declare const parse_error: (type: d_target.Parse_Error._type, range: d_target_token.Range) => d_target.Parse_Error;
|
|
5
|
-
export declare const unexpected_token: (found: d_target_token.Annotated_Token, expected:
|
|
5
|
+
export declare const unexpected_token: (found: d_target_token.Annotated_Token, expected: _pi.List<d_target.Parse_Error._type.SG.parser.expected.L>) => d_target.Parse_Error;
|
|
6
6
|
export declare const lexer_error: (type: d_target.Parse_Error._type.SG.lexer, range: d_target_token.Range) => d_target.Parse_Error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astn",
|
|
3
|
-
"version": "0.113.
|
|
3
|
+
"version": "0.113.18",
|
|
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",
|
|
@@ -39,12 +39,11 @@
|
|
|
39
39
|
"node": ">=14.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"exupery-
|
|
43
|
-
"
|
|
44
|
-
"exupery-core-data": "^0.3.3",
|
|
45
|
-
"exupery-core-dev": "^0.3.3",
|
|
42
|
+
"exupery-resources": "^0.3.54",
|
|
43
|
+
"pareto-core-refiner": "^0.1.3",
|
|
46
44
|
"pareto-fountain-pen": "^0.3.18",
|
|
45
|
+
"pareto-host-nodejs": "^0.1.1",
|
|
47
46
|
"pareto-json": "^0.3.5",
|
|
48
|
-
"pareto-standard-operations": "^0.3.
|
|
47
|
+
"pareto-standard-operations": "^0.3.26"
|
|
49
48
|
}
|
|
50
49
|
}
|