astn 0.110.15 → 0.110.17
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/README.md +4 -0
- package/dist/generated/implementation/schemas/ast/migration_boilerplate.d.ts +1 -0
- package/dist/generated/implementation/schemas/ast/migration_boilerplate.js +7 -2
- package/dist/generated/implementation/schemas/ide/migration_boilerplate.d.ts +1 -0
- package/dist/generated/implementation/schemas/ide/migration_boilerplate.js +7 -5
- package/dist/generated/interface/schemas/ast/migration_boilerplate.d.ts +24 -2
- package/dist/generated/interface/schemas/ast/poormans_parser.d.ts +21 -0
- package/dist/generated/interface/schemas/ast/resolved.d.ts +21 -0
- package/dist/generated/interface/schemas/ast/unconstrained.d.ts +1108 -0
- package/dist/generated/interface/schemas/ast/unconstrained.js +3 -0
- package/dist/generated/interface/schemas/ast/unresolved.d.ts +21 -0
- package/dist/generated/interface/schemas/ide/migration_boilerplate.d.ts +24 -2
- package/dist/generated/interface/schemas/ide/poormans_parser.d.ts +27 -27
- package/dist/generated/interface/schemas/ide/resolved.d.ts +27 -27
- package/dist/generated/interface/schemas/ide/unconstrained.d.ts +169 -0
- package/dist/generated/interface/schemas/ide/unconstrained.js +3 -0
- package/dist/generated/interface/schemas/ide/unresolved.d.ts +27 -27
- package/dist/generated/interface/schemas/parse_result/migration_boilerplate.d.ts +2 -2
- package/dist/generated/interface/schemas/parse_result/unconstrained.d.ts +416 -0
- package/dist/generated/interface/schemas/parse_result/unconstrained.js +3 -0
- package/dist/generated/interface/schemas/target/migration_boilerplate.d.ts +2 -2
- package/dist/generated/interface/schemas/target/unconstrained.d.ts +186 -0
- package/dist/generated/interface/schemas/target/unconstrained.js +3 -0
- package/dist/generated/interface/schemas/target_json/migration_boilerplate.d.ts +2 -2
- package/dist/generated/interface/schemas/target_json/unconstrained.d.ts +169 -0
- package/dist/generated/interface/schemas/target_json/unconstrained.js +3 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -4
- package/dist/parse/parse.d.ts +2 -2
- package/dist/parse/parse_generic.d.ts +2 -2
- package/dist/serializers/json.d.ts +1 -1
- package/dist/serializers/parse_result.d.ts +1 -1
- package/dist/transformations/ast/ide.d.ts +2 -2
- package/dist/transformations/ast/ide.js +3 -3
- package/dist/transformations/ast/json_target.d.ts +2 -2
- package/dist/transformations/target/fountain_pen_block.d.ts +2 -2
- package/dist/transformations/target_json/fountain_pen_block.d.ts +2 -2
- package/package.json +1 -1
|
@@ -3,18 +3,18 @@ import * as _i_imports_ast from "../ast/unresolved";
|
|
|
3
3
|
export type _T_Text_Edits = _i_core._T_List<null, _i_core._T_State_Group<null, readonly [
|
|
4
4
|
'delete',
|
|
5
5
|
{
|
|
6
|
-
readonly 'range': _i_imports_ast.
|
|
6
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
7
7
|
}
|
|
8
8
|
] | readonly [
|
|
9
9
|
'insert',
|
|
10
10
|
{
|
|
11
|
-
readonly 'location': _i_imports_ast.
|
|
11
|
+
readonly 'location': _i_imports_ast._T_Relative_Location;
|
|
12
12
|
readonly 'text': string;
|
|
13
13
|
}
|
|
14
14
|
] | readonly [
|
|
15
15
|
'replace',
|
|
16
16
|
{
|
|
17
|
-
readonly 'range': _i_imports_ast.
|
|
17
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
18
18
|
readonly 'text': string;
|
|
19
19
|
}
|
|
20
20
|
]>>;
|
|
@@ -25,47 +25,47 @@ export declare namespace _T_Text_Edits {
|
|
|
25
25
|
namespace _delete {
|
|
26
26
|
namespace range {
|
|
27
27
|
}
|
|
28
|
-
type range = _i_imports_ast.
|
|
28
|
+
type range = _i_imports_ast._T_Relative_Range;
|
|
29
29
|
}
|
|
30
30
|
type _delete = {
|
|
31
|
-
readonly 'range': _i_imports_ast.
|
|
31
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
32
32
|
};
|
|
33
33
|
namespace insert {
|
|
34
34
|
namespace location {
|
|
35
35
|
}
|
|
36
|
-
type location = _i_imports_ast.
|
|
36
|
+
type location = _i_imports_ast._T_Relative_Location;
|
|
37
37
|
type text = string;
|
|
38
38
|
}
|
|
39
39
|
type insert = {
|
|
40
|
-
readonly 'location': _i_imports_ast.
|
|
40
|
+
readonly 'location': _i_imports_ast._T_Relative_Location;
|
|
41
41
|
readonly 'text': string;
|
|
42
42
|
};
|
|
43
43
|
namespace replace {
|
|
44
44
|
namespace range {
|
|
45
45
|
}
|
|
46
|
-
type range = _i_imports_ast.
|
|
46
|
+
type range = _i_imports_ast._T_Relative_Range;
|
|
47
47
|
type text = string;
|
|
48
48
|
}
|
|
49
49
|
type replace = {
|
|
50
|
-
readonly 'range': _i_imports_ast.
|
|
50
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
51
51
|
readonly 'text': string;
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
type SG = readonly [
|
|
55
55
|
'delete',
|
|
56
56
|
{
|
|
57
|
-
readonly 'range': _i_imports_ast.
|
|
57
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
58
58
|
}
|
|
59
59
|
] | readonly [
|
|
60
60
|
'insert',
|
|
61
61
|
{
|
|
62
|
-
readonly 'location': _i_imports_ast.
|
|
62
|
+
readonly 'location': _i_imports_ast._T_Relative_Location;
|
|
63
63
|
readonly 'text': string;
|
|
64
64
|
}
|
|
65
65
|
] | readonly [
|
|
66
66
|
'replace',
|
|
67
67
|
{
|
|
68
|
-
readonly 'range': _i_imports_ast.
|
|
68
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
69
69
|
readonly 'text': string;
|
|
70
70
|
}
|
|
71
71
|
];
|
|
@@ -73,18 +73,18 @@ export declare namespace _T_Text_Edits {
|
|
|
73
73
|
type L = _i_core._T_State_Group<null, readonly [
|
|
74
74
|
'delete',
|
|
75
75
|
{
|
|
76
|
-
readonly 'range': _i_imports_ast.
|
|
76
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
77
77
|
}
|
|
78
78
|
] | readonly [
|
|
79
79
|
'insert',
|
|
80
80
|
{
|
|
81
|
-
readonly 'location': _i_imports_ast.
|
|
81
|
+
readonly 'location': _i_imports_ast._T_Relative_Location;
|
|
82
82
|
readonly 'text': string;
|
|
83
83
|
}
|
|
84
84
|
] | readonly [
|
|
85
85
|
'replace',
|
|
86
86
|
{
|
|
87
|
-
readonly 'range': _i_imports_ast.
|
|
87
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
88
88
|
readonly 'text': string;
|
|
89
89
|
}
|
|
90
90
|
]>;
|
|
@@ -95,47 +95,47 @@ export declare namespace Text_Edits {
|
|
|
95
95
|
namespace _delete {
|
|
96
96
|
namespace range {
|
|
97
97
|
}
|
|
98
|
-
type range = _i_imports_ast.
|
|
98
|
+
type range = _i_imports_ast._T_Relative_Range;
|
|
99
99
|
}
|
|
100
100
|
type _delete = {
|
|
101
|
-
readonly 'range': _i_imports_ast.
|
|
101
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
102
102
|
};
|
|
103
103
|
namespace insert {
|
|
104
104
|
namespace location {
|
|
105
105
|
}
|
|
106
|
-
type location = _i_imports_ast.
|
|
106
|
+
type location = _i_imports_ast._T_Relative_Location;
|
|
107
107
|
type text = string;
|
|
108
108
|
}
|
|
109
109
|
type insert = {
|
|
110
|
-
readonly 'location': _i_imports_ast.
|
|
110
|
+
readonly 'location': _i_imports_ast._T_Relative_Location;
|
|
111
111
|
readonly 'text': string;
|
|
112
112
|
};
|
|
113
113
|
namespace replace {
|
|
114
114
|
namespace range {
|
|
115
115
|
}
|
|
116
|
-
type range = _i_imports_ast.
|
|
116
|
+
type range = _i_imports_ast._T_Relative_Range;
|
|
117
117
|
type text = string;
|
|
118
118
|
}
|
|
119
119
|
type replace = {
|
|
120
|
-
readonly 'range': _i_imports_ast.
|
|
120
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
121
121
|
readonly 'text': string;
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
type SG = readonly [
|
|
125
125
|
'delete',
|
|
126
126
|
{
|
|
127
|
-
readonly 'range': _i_imports_ast.
|
|
127
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
128
128
|
}
|
|
129
129
|
] | readonly [
|
|
130
130
|
'insert',
|
|
131
131
|
{
|
|
132
|
-
readonly 'location': _i_imports_ast.
|
|
132
|
+
readonly 'location': _i_imports_ast._T_Relative_Location;
|
|
133
133
|
readonly 'text': string;
|
|
134
134
|
}
|
|
135
135
|
] | readonly [
|
|
136
136
|
'replace',
|
|
137
137
|
{
|
|
138
|
-
readonly 'range': _i_imports_ast.
|
|
138
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
139
139
|
readonly 'text': string;
|
|
140
140
|
}
|
|
141
141
|
];
|
|
@@ -143,18 +143,18 @@ export declare namespace Text_Edits {
|
|
|
143
143
|
type L = _i_core._T_State_Group<null, readonly [
|
|
144
144
|
'delete',
|
|
145
145
|
{
|
|
146
|
-
readonly 'range': _i_imports_ast.
|
|
146
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
147
147
|
}
|
|
148
148
|
] | readonly [
|
|
149
149
|
'insert',
|
|
150
150
|
{
|
|
151
|
-
readonly 'location': _i_imports_ast.
|
|
151
|
+
readonly 'location': _i_imports_ast._T_Relative_Location;
|
|
152
152
|
readonly 'text': string;
|
|
153
153
|
}
|
|
154
154
|
] | readonly [
|
|
155
155
|
'replace',
|
|
156
156
|
{
|
|
157
|
-
readonly 'range': _i_imports_ast.
|
|
157
|
+
readonly 'range': _i_imports_ast._T_Relative_Range;
|
|
158
158
|
readonly 'text': string;
|
|
159
159
|
}
|
|
160
160
|
]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _i_in from "./
|
|
2
|
-
import * as _i_out from "./
|
|
1
|
+
import * as _i_in from "./unconstrained";
|
|
2
|
+
import * as _i_out from "./unconstrained";
|
|
3
3
|
export type _T_Annotated_Token = ($$_: _i_in._T_Annotated_Token, $$_p: null) => _i_out._T_Annotated_Token;
|
|
4
4
|
export type _T_Parse_Error = ($$_: _i_in._T_Parse_Error, $$_p: null) => _i_out._T_Parse_Error;
|
|
5
5
|
export type _T_Parse_Result = ($$_: _i_in._T_Parse_Result, $$_p: null) => _i_out._T_Parse_Result;
|
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import * as _i_core from "../../core/resolved";
|
|
2
|
+
import * as _i_imports_ast from "../ast/unconstrained";
|
|
3
|
+
export type _T_Annotated_Token = {
|
|
4
|
+
readonly 'end': _i_imports_ast._T_Location;
|
|
5
|
+
readonly 'start': _i_imports_ast._T_Location;
|
|
6
|
+
readonly 'trailing trivia': _i_imports_ast._T_Trivia;
|
|
7
|
+
readonly 'type': _T_Token_Type;
|
|
8
|
+
};
|
|
9
|
+
export type _T_Parse_Error = {
|
|
10
|
+
readonly 'range': _i_imports_ast._T_Range;
|
|
11
|
+
readonly 'type': _i_core._T_State_Group<null, readonly [
|
|
12
|
+
'lexer',
|
|
13
|
+
_i_core._T_State_Group<null, readonly ['dangling slash', null] | readonly ['invalid unicode escape sequence', null] | readonly ['missing character after escape', null] | readonly ['unexpected character', number] | readonly ['unexpected control character', number] | readonly ['unexpected end of input', null] | readonly ['unexpected end of line in delimited string', null] | readonly ['unknown escape character', null] | readonly ['unterminated block comment', null] | readonly ['unterminated string', null] | readonly ['unterminated unicode escape sequence', null]>
|
|
14
|
+
] | readonly [
|
|
15
|
+
'parser',
|
|
16
|
+
{
|
|
17
|
+
readonly 'cause': _i_core._T_State_Group<null, readonly ['missing token', null] | readonly [
|
|
18
|
+
'unexpected token',
|
|
19
|
+
{
|
|
20
|
+
readonly 'found': _T_Token_Type;
|
|
21
|
+
}
|
|
22
|
+
]>;
|
|
23
|
+
readonly 'expected': _i_core._T_List<null, _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>>;
|
|
24
|
+
}
|
|
25
|
+
]>;
|
|
26
|
+
};
|
|
27
|
+
export type _T_Parse_Result = _i_core._T_State_Group<null, readonly ['failure', _T_Parse_Error] | readonly ['success', _i_imports_ast._T_Document]>;
|
|
28
|
+
export type _T_Token_Type = _i_core._T_State_Group<null, readonly ['!', null] | readonly ['(', null] | readonly [')', null] | readonly ['*', null] | readonly [',', null] | readonly [':', null] | readonly ['<', null] | readonly ['>', null] | readonly ['@', null] | readonly ['[', null] | readonly [']', null] | readonly [
|
|
29
|
+
'string',
|
|
30
|
+
{
|
|
31
|
+
readonly 'type': _i_imports_ast._T_String_Type;
|
|
32
|
+
readonly 'value': string;
|
|
33
|
+
}
|
|
34
|
+
] | readonly ['{', null] | readonly ['|', null] | readonly ['}', null] | readonly ['~', null]>;
|
|
35
|
+
export type _T_Tokenizer_Result = {
|
|
36
|
+
readonly 'end': _i_imports_ast._T_Location;
|
|
37
|
+
readonly 'leading trivia': _i_imports_ast._T_Trivia;
|
|
38
|
+
readonly 'tokens': _i_core._T_List<null, _T_Annotated_Token>;
|
|
39
|
+
};
|
|
40
|
+
export type Annotated_Token = _T_Annotated_Token;
|
|
41
|
+
export type Parse_Error = _T_Parse_Error;
|
|
42
|
+
export type Parse_Result = _T_Parse_Result;
|
|
43
|
+
export type Token_Type = _T_Token_Type;
|
|
44
|
+
export type Tokenizer_Result = _T_Tokenizer_Result;
|
|
45
|
+
export declare namespace _T_Annotated_Token {
|
|
46
|
+
namespace end {
|
|
47
|
+
}
|
|
48
|
+
type end = _i_imports_ast._T_Location;
|
|
49
|
+
namespace start {
|
|
50
|
+
}
|
|
51
|
+
type start = _i_imports_ast._T_Location;
|
|
52
|
+
namespace trailing_trivia {
|
|
53
|
+
}
|
|
54
|
+
type trailing_trivia = _i_imports_ast._T_Trivia;
|
|
55
|
+
namespace _type {
|
|
56
|
+
}
|
|
57
|
+
type _type = _T_Token_Type;
|
|
58
|
+
}
|
|
59
|
+
export declare namespace _T_Parse_Error {
|
|
60
|
+
namespace range {
|
|
61
|
+
}
|
|
62
|
+
type range = _i_imports_ast._T_Range;
|
|
63
|
+
namespace _type {
|
|
64
|
+
namespace SG {
|
|
65
|
+
namespace lexer {
|
|
66
|
+
namespace SG {
|
|
67
|
+
type dangling_slash = null;
|
|
68
|
+
type invalid_unicode_escape_sequence = null;
|
|
69
|
+
type missing_character_after_escape = null;
|
|
70
|
+
type unexpected_character = number;
|
|
71
|
+
type unexpected_control_character = number;
|
|
72
|
+
type unexpected_end_of_input = null;
|
|
73
|
+
type unexpected_end_of_line_in_delimited_string = null;
|
|
74
|
+
type unknown_escape_character = null;
|
|
75
|
+
type unterminated_block_comment = null;
|
|
76
|
+
type unterminated_string = null;
|
|
77
|
+
type unterminated_unicode_escape_sequence = null;
|
|
78
|
+
}
|
|
79
|
+
type SG = readonly ['dangling slash', null] | readonly ['invalid unicode escape sequence', null] | readonly ['missing character after escape', null] | readonly ['unexpected character', number] | readonly ['unexpected control character', number] | readonly ['unexpected end of input', null] | readonly ['unexpected end of line in delimited string', null] | readonly ['unknown escape character', null] | readonly ['unterminated block comment', null] | readonly ['unterminated string', null] | readonly ['unterminated unicode escape sequence', null];
|
|
80
|
+
}
|
|
81
|
+
type lexer = _i_core._T_State_Group<null, readonly ['dangling slash', null] | readonly ['invalid unicode escape sequence', null] | readonly ['missing character after escape', null] | readonly ['unexpected character', number] | readonly ['unexpected control character', number] | readonly ['unexpected end of input', null] | readonly ['unexpected end of line in delimited string', null] | readonly ['unknown escape character', null] | readonly ['unterminated block comment', null] | readonly ['unterminated string', null] | readonly ['unterminated unicode escape sequence', null]>;
|
|
82
|
+
namespace parser {
|
|
83
|
+
namespace cause {
|
|
84
|
+
namespace SG {
|
|
85
|
+
type missing_token = null;
|
|
86
|
+
namespace unexpected_token {
|
|
87
|
+
namespace found {
|
|
88
|
+
}
|
|
89
|
+
type found = _T_Token_Type;
|
|
90
|
+
}
|
|
91
|
+
type unexpected_token = {
|
|
92
|
+
readonly 'found': _T_Token_Type;
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
type SG = readonly ['missing token', null] | readonly [
|
|
96
|
+
'unexpected token',
|
|
97
|
+
{
|
|
98
|
+
readonly 'found': _T_Token_Type;
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
}
|
|
102
|
+
type cause = _i_core._T_State_Group<null, readonly ['missing token', null] | readonly [
|
|
103
|
+
'unexpected token',
|
|
104
|
+
{
|
|
105
|
+
readonly 'found': _T_Token_Type;
|
|
106
|
+
}
|
|
107
|
+
]>;
|
|
108
|
+
namespace expected {
|
|
109
|
+
namespace L {
|
|
110
|
+
namespace SG {
|
|
111
|
+
type $ex_ = null;
|
|
112
|
+
type $pc_ = null;
|
|
113
|
+
type $cm_ = null;
|
|
114
|
+
type $cl_ = null;
|
|
115
|
+
type $gt_ = null;
|
|
116
|
+
type $at_ = null;
|
|
117
|
+
type $bc_ = null;
|
|
118
|
+
type a_string = null;
|
|
119
|
+
type a_value = null;
|
|
120
|
+
type $cc_ = null;
|
|
121
|
+
}
|
|
122
|
+
type SG = readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null];
|
|
123
|
+
}
|
|
124
|
+
type L = _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>;
|
|
125
|
+
}
|
|
126
|
+
type expected = _i_core._T_List<null, _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>>;
|
|
127
|
+
}
|
|
128
|
+
type parser = {
|
|
129
|
+
readonly 'cause': _i_core._T_State_Group<null, readonly ['missing token', null] | readonly [
|
|
130
|
+
'unexpected token',
|
|
131
|
+
{
|
|
132
|
+
readonly 'found': _T_Token_Type;
|
|
133
|
+
}
|
|
134
|
+
]>;
|
|
135
|
+
readonly 'expected': _i_core._T_List<null, _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>>;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
type SG = readonly [
|
|
139
|
+
'lexer',
|
|
140
|
+
_i_core._T_State_Group<null, readonly ['dangling slash', null] | readonly ['invalid unicode escape sequence', null] | readonly ['missing character after escape', null] | readonly ['unexpected character', number] | readonly ['unexpected control character', number] | readonly ['unexpected end of input', null] | readonly ['unexpected end of line in delimited string', null] | readonly ['unknown escape character', null] | readonly ['unterminated block comment', null] | readonly ['unterminated string', null] | readonly ['unterminated unicode escape sequence', null]>
|
|
141
|
+
] | readonly [
|
|
142
|
+
'parser',
|
|
143
|
+
{
|
|
144
|
+
readonly 'cause': _i_core._T_State_Group<null, readonly ['missing token', null] | readonly [
|
|
145
|
+
'unexpected token',
|
|
146
|
+
{
|
|
147
|
+
readonly 'found': _T_Token_Type;
|
|
148
|
+
}
|
|
149
|
+
]>;
|
|
150
|
+
readonly 'expected': _i_core._T_List<null, _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>>;
|
|
151
|
+
}
|
|
152
|
+
];
|
|
153
|
+
}
|
|
154
|
+
type _type = _i_core._T_State_Group<null, readonly [
|
|
155
|
+
'lexer',
|
|
156
|
+
_i_core._T_State_Group<null, readonly ['dangling slash', null] | readonly ['invalid unicode escape sequence', null] | readonly ['missing character after escape', null] | readonly ['unexpected character', number] | readonly ['unexpected control character', number] | readonly ['unexpected end of input', null] | readonly ['unexpected end of line in delimited string', null] | readonly ['unknown escape character', null] | readonly ['unterminated block comment', null] | readonly ['unterminated string', null] | readonly ['unterminated unicode escape sequence', null]>
|
|
157
|
+
] | readonly [
|
|
158
|
+
'parser',
|
|
159
|
+
{
|
|
160
|
+
readonly 'cause': _i_core._T_State_Group<null, readonly ['missing token', null] | readonly [
|
|
161
|
+
'unexpected token',
|
|
162
|
+
{
|
|
163
|
+
readonly 'found': _T_Token_Type;
|
|
164
|
+
}
|
|
165
|
+
]>;
|
|
166
|
+
readonly 'expected': _i_core._T_List<null, _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>>;
|
|
167
|
+
}
|
|
168
|
+
]>;
|
|
169
|
+
}
|
|
170
|
+
export declare namespace _T_Parse_Result {
|
|
171
|
+
namespace SG {
|
|
172
|
+
namespace failure {
|
|
173
|
+
}
|
|
174
|
+
type failure = _T_Parse_Error;
|
|
175
|
+
namespace success {
|
|
176
|
+
}
|
|
177
|
+
type success = _i_imports_ast._T_Document;
|
|
178
|
+
}
|
|
179
|
+
type SG = readonly ['failure', _T_Parse_Error] | readonly ['success', _i_imports_ast._T_Document];
|
|
180
|
+
}
|
|
181
|
+
export declare namespace _T_Token_Type {
|
|
182
|
+
namespace SG {
|
|
183
|
+
type $ex_ = null;
|
|
184
|
+
type $po_ = null;
|
|
185
|
+
type $pc_ = null;
|
|
186
|
+
type $sr_ = null;
|
|
187
|
+
type $cm_ = null;
|
|
188
|
+
type $cl_ = null;
|
|
189
|
+
type $st_ = null;
|
|
190
|
+
type $gt_ = null;
|
|
191
|
+
type $at_ = null;
|
|
192
|
+
type $bo_ = null;
|
|
193
|
+
type $bc_ = null;
|
|
194
|
+
namespace _string {
|
|
195
|
+
namespace _type {
|
|
196
|
+
}
|
|
197
|
+
type _type = _i_imports_ast._T_String_Type;
|
|
198
|
+
type value = string;
|
|
199
|
+
}
|
|
200
|
+
type _string = {
|
|
201
|
+
readonly 'type': _i_imports_ast._T_String_Type;
|
|
202
|
+
readonly 'value': string;
|
|
203
|
+
};
|
|
204
|
+
type $co_ = null;
|
|
205
|
+
type $vb_ = null;
|
|
206
|
+
type $cc_ = null;
|
|
207
|
+
type $ti_ = null;
|
|
208
|
+
}
|
|
209
|
+
type SG = readonly ['!', null] | readonly ['(', null] | readonly [')', null] | readonly ['*', null] | readonly [',', null] | readonly [':', null] | readonly ['<', null] | readonly ['>', null] | readonly ['@', null] | readonly ['[', null] | readonly [']', null] | readonly [
|
|
210
|
+
'string',
|
|
211
|
+
{
|
|
212
|
+
readonly 'type': _i_imports_ast._T_String_Type;
|
|
213
|
+
readonly 'value': string;
|
|
214
|
+
}
|
|
215
|
+
] | readonly ['{', null] | readonly ['|', null] | readonly ['}', null] | readonly ['~', null];
|
|
216
|
+
}
|
|
217
|
+
export declare namespace _T_Tokenizer_Result {
|
|
218
|
+
namespace end {
|
|
219
|
+
}
|
|
220
|
+
type end = _i_imports_ast._T_Location;
|
|
221
|
+
namespace leading_trivia {
|
|
222
|
+
}
|
|
223
|
+
type leading_trivia = _i_imports_ast._T_Trivia;
|
|
224
|
+
namespace tokens {
|
|
225
|
+
namespace L {
|
|
226
|
+
}
|
|
227
|
+
type L = _T_Annotated_Token;
|
|
228
|
+
}
|
|
229
|
+
type tokens = _i_core._T_List<null, _T_Annotated_Token>;
|
|
230
|
+
}
|
|
231
|
+
export declare namespace Annotated_Token {
|
|
232
|
+
namespace end {
|
|
233
|
+
}
|
|
234
|
+
type end = _i_imports_ast._T_Location;
|
|
235
|
+
namespace start {
|
|
236
|
+
}
|
|
237
|
+
type start = _i_imports_ast._T_Location;
|
|
238
|
+
namespace trailing_trivia {
|
|
239
|
+
}
|
|
240
|
+
type trailing_trivia = _i_imports_ast._T_Trivia;
|
|
241
|
+
namespace _type {
|
|
242
|
+
}
|
|
243
|
+
type _type = _T_Token_Type;
|
|
244
|
+
}
|
|
245
|
+
export declare namespace Parse_Error {
|
|
246
|
+
namespace range {
|
|
247
|
+
}
|
|
248
|
+
type range = _i_imports_ast._T_Range;
|
|
249
|
+
namespace _type {
|
|
250
|
+
namespace SG {
|
|
251
|
+
namespace lexer {
|
|
252
|
+
namespace SG {
|
|
253
|
+
type dangling_slash = null;
|
|
254
|
+
type invalid_unicode_escape_sequence = null;
|
|
255
|
+
type missing_character_after_escape = null;
|
|
256
|
+
type unexpected_character = number;
|
|
257
|
+
type unexpected_control_character = number;
|
|
258
|
+
type unexpected_end_of_input = null;
|
|
259
|
+
type unexpected_end_of_line_in_delimited_string = null;
|
|
260
|
+
type unknown_escape_character = null;
|
|
261
|
+
type unterminated_block_comment = null;
|
|
262
|
+
type unterminated_string = null;
|
|
263
|
+
type unterminated_unicode_escape_sequence = null;
|
|
264
|
+
}
|
|
265
|
+
type SG = readonly ['dangling slash', null] | readonly ['invalid unicode escape sequence', null] | readonly ['missing character after escape', null] | readonly ['unexpected character', number] | readonly ['unexpected control character', number] | readonly ['unexpected end of input', null] | readonly ['unexpected end of line in delimited string', null] | readonly ['unknown escape character', null] | readonly ['unterminated block comment', null] | readonly ['unterminated string', null] | readonly ['unterminated unicode escape sequence', null];
|
|
266
|
+
}
|
|
267
|
+
type lexer = _i_core._T_State_Group<null, readonly ['dangling slash', null] | readonly ['invalid unicode escape sequence', null] | readonly ['missing character after escape', null] | readonly ['unexpected character', number] | readonly ['unexpected control character', number] | readonly ['unexpected end of input', null] | readonly ['unexpected end of line in delimited string', null] | readonly ['unknown escape character', null] | readonly ['unterminated block comment', null] | readonly ['unterminated string', null] | readonly ['unterminated unicode escape sequence', null]>;
|
|
268
|
+
namespace parser {
|
|
269
|
+
namespace cause {
|
|
270
|
+
namespace SG {
|
|
271
|
+
type missing_token = null;
|
|
272
|
+
namespace unexpected_token {
|
|
273
|
+
namespace found {
|
|
274
|
+
}
|
|
275
|
+
type found = _T_Token_Type;
|
|
276
|
+
}
|
|
277
|
+
type unexpected_token = {
|
|
278
|
+
readonly 'found': _T_Token_Type;
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
type SG = readonly ['missing token', null] | readonly [
|
|
282
|
+
'unexpected token',
|
|
283
|
+
{
|
|
284
|
+
readonly 'found': _T_Token_Type;
|
|
285
|
+
}
|
|
286
|
+
];
|
|
287
|
+
}
|
|
288
|
+
type cause = _i_core._T_State_Group<null, readonly ['missing token', null] | readonly [
|
|
289
|
+
'unexpected token',
|
|
290
|
+
{
|
|
291
|
+
readonly 'found': _T_Token_Type;
|
|
292
|
+
}
|
|
293
|
+
]>;
|
|
294
|
+
namespace expected {
|
|
295
|
+
namespace L {
|
|
296
|
+
namespace SG {
|
|
297
|
+
type $ex_ = null;
|
|
298
|
+
type $pc_ = null;
|
|
299
|
+
type $cm_ = null;
|
|
300
|
+
type $cl_ = null;
|
|
301
|
+
type $gt_ = null;
|
|
302
|
+
type $at_ = null;
|
|
303
|
+
type $bc_ = null;
|
|
304
|
+
type a_string = null;
|
|
305
|
+
type a_value = null;
|
|
306
|
+
type $cc_ = null;
|
|
307
|
+
}
|
|
308
|
+
type SG = readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null];
|
|
309
|
+
}
|
|
310
|
+
type L = _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>;
|
|
311
|
+
}
|
|
312
|
+
type expected = _i_core._T_List<null, _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>>;
|
|
313
|
+
}
|
|
314
|
+
type parser = {
|
|
315
|
+
readonly 'cause': _i_core._T_State_Group<null, readonly ['missing token', null] | readonly [
|
|
316
|
+
'unexpected token',
|
|
317
|
+
{
|
|
318
|
+
readonly 'found': _T_Token_Type;
|
|
319
|
+
}
|
|
320
|
+
]>;
|
|
321
|
+
readonly 'expected': _i_core._T_List<null, _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>>;
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
type SG = readonly [
|
|
325
|
+
'lexer',
|
|
326
|
+
_i_core._T_State_Group<null, readonly ['dangling slash', null] | readonly ['invalid unicode escape sequence', null] | readonly ['missing character after escape', null] | readonly ['unexpected character', number] | readonly ['unexpected control character', number] | readonly ['unexpected end of input', null] | readonly ['unexpected end of line in delimited string', null] | readonly ['unknown escape character', null] | readonly ['unterminated block comment', null] | readonly ['unterminated string', null] | readonly ['unterminated unicode escape sequence', null]>
|
|
327
|
+
] | readonly [
|
|
328
|
+
'parser',
|
|
329
|
+
{
|
|
330
|
+
readonly 'cause': _i_core._T_State_Group<null, readonly ['missing token', null] | readonly [
|
|
331
|
+
'unexpected token',
|
|
332
|
+
{
|
|
333
|
+
readonly 'found': _T_Token_Type;
|
|
334
|
+
}
|
|
335
|
+
]>;
|
|
336
|
+
readonly 'expected': _i_core._T_List<null, _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>>;
|
|
337
|
+
}
|
|
338
|
+
];
|
|
339
|
+
}
|
|
340
|
+
type _type = _i_core._T_State_Group<null, readonly [
|
|
341
|
+
'lexer',
|
|
342
|
+
_i_core._T_State_Group<null, readonly ['dangling slash', null] | readonly ['invalid unicode escape sequence', null] | readonly ['missing character after escape', null] | readonly ['unexpected character', number] | readonly ['unexpected control character', number] | readonly ['unexpected end of input', null] | readonly ['unexpected end of line in delimited string', null] | readonly ['unknown escape character', null] | readonly ['unterminated block comment', null] | readonly ['unterminated string', null] | readonly ['unterminated unicode escape sequence', null]>
|
|
343
|
+
] | readonly [
|
|
344
|
+
'parser',
|
|
345
|
+
{
|
|
346
|
+
readonly 'cause': _i_core._T_State_Group<null, readonly ['missing token', null] | readonly [
|
|
347
|
+
'unexpected token',
|
|
348
|
+
{
|
|
349
|
+
readonly 'found': _T_Token_Type;
|
|
350
|
+
}
|
|
351
|
+
]>;
|
|
352
|
+
readonly 'expected': _i_core._T_List<null, _i_core._T_State_Group<null, readonly ['!', null] | readonly [')', null] | readonly [',', null] | readonly [':', null] | readonly ['>', null] | readonly ['@', null] | readonly [']', null] | readonly ['a string', null] | readonly ['a value', null] | readonly ['}', null]>>;
|
|
353
|
+
}
|
|
354
|
+
]>;
|
|
355
|
+
}
|
|
356
|
+
export declare namespace Parse_Result {
|
|
357
|
+
namespace SG {
|
|
358
|
+
namespace failure {
|
|
359
|
+
}
|
|
360
|
+
type failure = _T_Parse_Error;
|
|
361
|
+
namespace success {
|
|
362
|
+
}
|
|
363
|
+
type success = _i_imports_ast._T_Document;
|
|
364
|
+
}
|
|
365
|
+
type SG = readonly ['failure', _T_Parse_Error] | readonly ['success', _i_imports_ast._T_Document];
|
|
366
|
+
}
|
|
367
|
+
export declare namespace Token_Type {
|
|
368
|
+
namespace SG {
|
|
369
|
+
type $ex_ = null;
|
|
370
|
+
type $po_ = null;
|
|
371
|
+
type $pc_ = null;
|
|
372
|
+
type $sr_ = null;
|
|
373
|
+
type $cm_ = null;
|
|
374
|
+
type $cl_ = null;
|
|
375
|
+
type $st_ = null;
|
|
376
|
+
type $gt_ = null;
|
|
377
|
+
type $at_ = null;
|
|
378
|
+
type $bo_ = null;
|
|
379
|
+
type $bc_ = null;
|
|
380
|
+
namespace _string {
|
|
381
|
+
namespace _type {
|
|
382
|
+
}
|
|
383
|
+
type _type = _i_imports_ast._T_String_Type;
|
|
384
|
+
type value = string;
|
|
385
|
+
}
|
|
386
|
+
type _string = {
|
|
387
|
+
readonly 'type': _i_imports_ast._T_String_Type;
|
|
388
|
+
readonly 'value': string;
|
|
389
|
+
};
|
|
390
|
+
type $co_ = null;
|
|
391
|
+
type $vb_ = null;
|
|
392
|
+
type $cc_ = null;
|
|
393
|
+
type $ti_ = null;
|
|
394
|
+
}
|
|
395
|
+
type SG = readonly ['!', null] | readonly ['(', null] | readonly [')', null] | readonly ['*', null] | readonly [',', null] | readonly [':', null] | readonly ['<', null] | readonly ['>', null] | readonly ['@', null] | readonly ['[', null] | readonly [']', null] | readonly [
|
|
396
|
+
'string',
|
|
397
|
+
{
|
|
398
|
+
readonly 'type': _i_imports_ast._T_String_Type;
|
|
399
|
+
readonly 'value': string;
|
|
400
|
+
}
|
|
401
|
+
] | readonly ['{', null] | readonly ['|', null] | readonly ['}', null] | readonly ['~', null];
|
|
402
|
+
}
|
|
403
|
+
export declare namespace Tokenizer_Result {
|
|
404
|
+
namespace end {
|
|
405
|
+
}
|
|
406
|
+
type end = _i_imports_ast._T_Location;
|
|
407
|
+
namespace leading_trivia {
|
|
408
|
+
}
|
|
409
|
+
type leading_trivia = _i_imports_ast._T_Trivia;
|
|
410
|
+
namespace tokens {
|
|
411
|
+
namespace L {
|
|
412
|
+
}
|
|
413
|
+
type L = _T_Annotated_Token;
|
|
414
|
+
}
|
|
415
|
+
type tokens = _i_core._T_List<null, _T_Annotated_Token>;
|
|
416
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5jb25zdHJhaW5lZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9nZW5lcmF0ZWQvaW50ZXJmYWNlL3NjaGVtYXMvcGFyc2VfcmVzdWx0L3VuY29uc3RyYWluZWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as _i_in from "./
|
|
2
|
-
import * as _i_out from "./
|
|
1
|
+
import * as _i_in from "./unconstrained";
|
|
2
|
+
import * as _i_out from "./unconstrained";
|
|
3
3
|
export type _T_Document = ($$_: _i_in._T_Document, $$_p: null) => _i_out._T_Document;
|
|
4
4
|
export type _T_Value = ($$_: _i_in._T_Value, $$_p: null) => _i_out._T_Value;
|
|
5
5
|
export type Document = _T_Document;
|