astn 0.106.0 → 0.110.1

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.
@@ -0,0 +1,124 @@
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 Relative_Location = {
7
+ readonly 'column': number;
8
+ readonly 'line': number;
9
+ };
10
+ export type Document = {
11
+ 'header': _et.Optional_Value<{
12
+ '!': Structural_Token;
13
+ 'value': Value;
14
+ }>;
15
+ 'content': Value;
16
+ };
17
+ export type Value = {
18
+ 'location': Location;
19
+ 'type': Value_Type;
20
+ };
21
+ export type Value_Type = ['string', StringX] | [
22
+ 'indexed collection',
23
+ [
24
+ 'dictionary',
25
+ {
26
+ '{': Structural_Token;
27
+ 'entries': Key_Value_Pairs;
28
+ '}': Structural_Token;
29
+ }
30
+ ] | [
31
+ 'verbose group',
32
+ {
33
+ '(': Structural_Token;
34
+ 'entries': Key_Value_Pairs;
35
+ ')': Structural_Token;
36
+ }
37
+ ]
38
+ ] | [
39
+ 'ordered collection',
40
+ [
41
+ 'list',
42
+ {
43
+ '[': Structural_Token;
44
+ 'elements': Elements;
45
+ ']': Structural_Token;
46
+ }
47
+ ] | [
48
+ 'concise group',
49
+ {
50
+ '<': Structural_Token;
51
+ 'elements': Elements;
52
+ '>': Structural_Token;
53
+ }
54
+ ]
55
+ ] | [
56
+ 'include',
57
+ {
58
+ '@': Structural_Token;
59
+ 'path': StringX;
60
+ }
61
+ ] | [
62
+ 'tagged value',
63
+ {
64
+ '|': Structural_Token;
65
+ 'state': StringX;
66
+ 'value': Value;
67
+ }
68
+ ] | [
69
+ 'not set',
70
+ {
71
+ '~': Structural_Token;
72
+ }
73
+ ] | [
74
+ 'set optional value',
75
+ {
76
+ '*': Structural_Token;
77
+ 'value': Value;
78
+ }
79
+ ];
80
+ export type StringX = {
81
+ readonly 'trivia': Trivia;
82
+ readonly 'start': Location;
83
+ readonly 'core': String_Core;
84
+ };
85
+ export type String_Type = ['quoted', null] | ['apostrophed', null] | ['undelimited', null] | ['backticked', null];
86
+ export type String_Core = {
87
+ 'value': string;
88
+ 'type': String_Type;
89
+ 'end': Location;
90
+ };
91
+ export type Key_Value_Pairs = _et.Array<Key_Value_Pair>;
92
+ export type Element = {
93
+ 'value': Value;
94
+ ',': _et.Optional_Value<Structural_Token>;
95
+ };
96
+ export type Elements = _et.Array<Element>;
97
+ export type Key_Value_Pair = {
98
+ 'key': StringX;
99
+ 'value': _et.Optional_Value<{
100
+ ':': Structural_Token;
101
+ 'value': Value;
102
+ }>;
103
+ ',': _et.Optional_Value<Structural_Token>;
104
+ };
105
+ export type Structural_Token = {
106
+ readonly 'trivia': Trivia;
107
+ readonly 'location': Location;
108
+ };
109
+ export type Whitespace = {
110
+ 'start': Location;
111
+ 'end': Location;
112
+ 'value': string;
113
+ };
114
+ export type Trivia = {
115
+ 'start': Location;
116
+ 'leading whitespace': Whitespace;
117
+ 'comments': _et.Array<{
118
+ 'type': ['line', null] | ['block', null];
119
+ 'content': string;
120
+ 'begin': Location;
121
+ 'end': Location;
122
+ 'trailing whitespace': Whitespace;
123
+ }>;
124
+ };
package/dist/types.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
package/package.json CHANGED
@@ -1,4 +1,14 @@
1
1
  {
2
2
  "name": "astn",
3
- "version": "0.106.0"
3
+ "version": "0.110.1",
4
+ "description": "A library for parsing and formatting ASTN (Abstract Syntax Tree Notation)",
5
+ "main": "./dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "dependencies": {
11
+ "exupery-core-alg": "^0.1.4",
12
+ "pareto-standard-operations": "^0.1.0"
13
+ }
4
14
  }