IncludeCPP 4.6.0__py3-none-any.whl → 4.9.3__py3-none-any.whl
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.
- includecpp/CHANGELOG.md +241 -0
- includecpp/__init__.py +89 -3
- includecpp/__init__.pyi +2 -1
- includecpp/cli/commands.py +1747 -266
- includecpp/cli/config_parser.py +1 -1
- includecpp/core/build_manager.py +64 -13
- includecpp/core/cpp_api_extensions.pyi +43 -270
- includecpp/core/cssl/CSSL_DOCUMENTATION.md +1799 -1445
- includecpp/core/cssl/cpp/build/api.pyd +0 -0
- includecpp/core/cssl/cpp/build/api.pyi +274 -0
- includecpp/core/cssl/cpp/build/cssl_core.pyi +0 -99
- includecpp/core/cssl/cpp/cssl_core.cp +2 -23
- includecpp/core/cssl/cssl_builtins.py +2116 -171
- includecpp/core/cssl/cssl_builtins.pyi +1324 -104
- includecpp/core/cssl/cssl_compiler.py +4 -1
- includecpp/core/cssl/cssl_modules.py +605 -6
- includecpp/core/cssl/cssl_optimizer.py +12 -1
- includecpp/core/cssl/cssl_parser.py +1048 -52
- includecpp/core/cssl/cssl_runtime.py +2041 -131
- includecpp/core/cssl/cssl_syntax.py +405 -277
- includecpp/core/cssl/cssl_types.py +5891 -1655
- includecpp/core/cssl_bridge.py +427 -4
- includecpp/core/error_catalog.py +54 -10
- includecpp/core/homeserver.py +1037 -0
- includecpp/generator/parser.cpp +203 -39
- includecpp/generator/parser.h +15 -1
- includecpp/templates/cpp.proj.template +1 -1
- includecpp/vscode/cssl/snippets/cssl.snippets.json +163 -0
- includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json +87 -12
- {includecpp-4.6.0.dist-info → includecpp-4.9.3.dist-info}/METADATA +81 -10
- {includecpp-4.6.0.dist-info → includecpp-4.9.3.dist-info}/RECORD +35 -33
- {includecpp-4.6.0.dist-info → includecpp-4.9.3.dist-info}/WHEEL +1 -1
- {includecpp-4.6.0.dist-info → includecpp-4.9.3.dist-info}/entry_points.txt +0 -0
- {includecpp-4.6.0.dist-info → includecpp-4.9.3.dist-info}/licenses/LICENSE +0 -0
- {includecpp-4.6.0.dist-info → includecpp-4.9.3.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
"""Auto-generated type stubs for IncludeCPP C++ bindings
|
|
2
|
+
|
|
3
|
+
This file describes the raw C++ module structure.
|
|
4
|
+
For VSCode autocomplete, see cpp_api_extensions.pyi
|
|
5
|
+
"""
|
|
6
|
+
from typing import Any, List, Dict, Optional, Union, overload, Sequence
|
|
7
|
+
|
|
8
|
+
class cssl_core:
|
|
9
|
+
"""Module: cssl_core
|
|
10
|
+
|
|
11
|
+
Sources: include/cssl_core.cpp
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
class Lexer:
|
|
15
|
+
"""C++ class: Lexer"""
|
|
16
|
+
|
|
17
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
18
|
+
"""Initialize Lexer instance"""
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
@staticmethod
|
|
22
|
+
def Initialize(*args: Any, **kwargs: Any) -> "cssl_core.Lexer":
|
|
23
|
+
"""Create and initialize a new Lexer instance"""
|
|
24
|
+
...
|
|
25
|
+
|
|
26
|
+
def tokenize(self) -> Any:
|
|
27
|
+
"""C++ method: tokenize"""
|
|
28
|
+
...
|
|
29
|
+
|
|
30
|
+
class Token:
|
|
31
|
+
"""C++ class: Token"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
34
|
+
"""Initialize Token instance"""
|
|
35
|
+
...
|
|
36
|
+
|
|
37
|
+
@staticmethod
|
|
38
|
+
def Initialize(*args: Any, **kwargs: Any) -> "cssl_core.Token":
|
|
39
|
+
"""Create and initialize a new Token instance"""
|
|
40
|
+
...
|
|
41
|
+
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
class Interpreter:
|
|
45
|
+
"""C++ class: Interpreter"""
|
|
46
|
+
|
|
47
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
48
|
+
"""Initialize Interpreter instance"""
|
|
49
|
+
...
|
|
50
|
+
|
|
51
|
+
@staticmethod
|
|
52
|
+
def Initialize(*args: Any, **kwargs: Any) -> "cssl_core.Interpreter":
|
|
53
|
+
"""Create and initialize a new Interpreter instance"""
|
|
54
|
+
...
|
|
55
|
+
|
|
56
|
+
def run(self) -> Any:
|
|
57
|
+
"""C++ method: run"""
|
|
58
|
+
...
|
|
59
|
+
|
|
60
|
+
def run_string(self) -> Any:
|
|
61
|
+
"""C++ method: run_string"""
|
|
62
|
+
...
|
|
63
|
+
|
|
64
|
+
@staticmethod
|
|
65
|
+
def run_cssl(source: str) -> str:
|
|
66
|
+
"""C++ function: run_cssl"""
|
|
67
|
+
...
|
|
68
|
+
|
|
69
|
+
@staticmethod
|
|
70
|
+
def version() -> str:
|
|
71
|
+
"""C++ function: version"""
|
|
72
|
+
...
|
|
73
|
+
|
|
74
|
+
@staticmethod
|
|
75
|
+
def is_keyword(word: str) -> bool:
|
|
76
|
+
"""C++ function: is_keyword"""
|
|
77
|
+
...
|
|
78
|
+
|
|
79
|
+
@staticmethod
|
|
80
|
+
def str_concat(a: str, b: str) -> str:
|
|
81
|
+
"""C++ function: str_concat"""
|
|
82
|
+
...
|
|
83
|
+
|
|
84
|
+
@staticmethod
|
|
85
|
+
def str_contains(s: str, sub: str) -> bool:
|
|
86
|
+
"""C++ function: str_contains"""
|
|
87
|
+
...
|
|
88
|
+
|
|
89
|
+
@staticmethod
|
|
90
|
+
def str_join(parts: List[str], delim: str) -> str:
|
|
91
|
+
"""C++ function: str_join"""
|
|
92
|
+
...
|
|
93
|
+
|
|
94
|
+
@staticmethod
|
|
95
|
+
def str_lower(s: str) -> str:
|
|
96
|
+
"""C++ function: str_lower"""
|
|
97
|
+
...
|
|
98
|
+
|
|
99
|
+
@staticmethod
|
|
100
|
+
def str_replace(s: str, from: str, to: str) -> str:
|
|
101
|
+
"""C++ function: str_replace"""
|
|
102
|
+
...
|
|
103
|
+
|
|
104
|
+
@staticmethod
|
|
105
|
+
def str_split(s: str, delim: str) -> List[str]:
|
|
106
|
+
"""C++ function: str_split"""
|
|
107
|
+
...
|
|
108
|
+
|
|
109
|
+
@staticmethod
|
|
110
|
+
def str_trim(s: str) -> str:
|
|
111
|
+
"""C++ function: str_trim"""
|
|
112
|
+
...
|
|
113
|
+
|
|
114
|
+
@staticmethod
|
|
115
|
+
def str_upper(s: str) -> str:
|
|
116
|
+
"""C++ function: str_upper"""
|
|
117
|
+
...
|
|
118
|
+
|
|
119
|
+
@staticmethod
|
|
120
|
+
def str_reverse(s: str) -> str:
|
|
121
|
+
"""C++ function: str_reverse"""
|
|
122
|
+
...
|
|
123
|
+
|
|
124
|
+
@staticmethod
|
|
125
|
+
def str_len(s: str) -> Any:
|
|
126
|
+
"""C++ function: str_len"""
|
|
127
|
+
...
|
|
128
|
+
|
|
129
|
+
@staticmethod
|
|
130
|
+
def str_repeat(s: str, count: Any) -> str:
|
|
131
|
+
"""C++ function: str_repeat"""
|
|
132
|
+
...
|
|
133
|
+
|
|
134
|
+
@staticmethod
|
|
135
|
+
def str_startswith(s: str, prefix: str) -> bool:
|
|
136
|
+
"""C++ function: str_startswith"""
|
|
137
|
+
...
|
|
138
|
+
|
|
139
|
+
@staticmethod
|
|
140
|
+
def str_endswith(s: str, suffix: str) -> bool:
|
|
141
|
+
"""C++ function: str_endswith"""
|
|
142
|
+
...
|
|
143
|
+
|
|
144
|
+
@staticmethod
|
|
145
|
+
def str_indexof(s: str, sub: str) -> Any:
|
|
146
|
+
"""C++ function: str_indexof"""
|
|
147
|
+
...
|
|
148
|
+
|
|
149
|
+
@staticmethod
|
|
150
|
+
def str_substr(s: str, start: Any, length: Any = -1) -> str:
|
|
151
|
+
"""C++ function: str_substr"""
|
|
152
|
+
...
|
|
153
|
+
|
|
154
|
+
@staticmethod
|
|
155
|
+
def str_cmp(a: str, b: str) -> int:
|
|
156
|
+
"""C++ function: str_cmp"""
|
|
157
|
+
...
|
|
158
|
+
|
|
159
|
+
@staticmethod
|
|
160
|
+
def math_clamp(value: float, min_val: float, max_val: float) -> float:
|
|
161
|
+
"""C++ function: math_clamp"""
|
|
162
|
+
...
|
|
163
|
+
|
|
164
|
+
@staticmethod
|
|
165
|
+
def math_ipow(base: Any, exp: Any) -> Any:
|
|
166
|
+
"""C++ function: math_ipow"""
|
|
167
|
+
...
|
|
168
|
+
|
|
169
|
+
@staticmethod
|
|
170
|
+
def math_pow(base: float, exp: float) -> float:
|
|
171
|
+
"""C++ function: math_pow"""
|
|
172
|
+
...
|
|
173
|
+
|
|
174
|
+
@staticmethod
|
|
175
|
+
def math_mod(a: Any, b: Any) -> Any:
|
|
176
|
+
"""C++ function: math_mod"""
|
|
177
|
+
...
|
|
178
|
+
|
|
179
|
+
@staticmethod
|
|
180
|
+
def math_abs(x: float) -> float:
|
|
181
|
+
"""C++ function: math_abs"""
|
|
182
|
+
...
|
|
183
|
+
|
|
184
|
+
@staticmethod
|
|
185
|
+
def math_min(a: float, b: float) -> float:
|
|
186
|
+
"""C++ function: math_min"""
|
|
187
|
+
...
|
|
188
|
+
|
|
189
|
+
@staticmethod
|
|
190
|
+
def math_max(a: float, b: float) -> float:
|
|
191
|
+
"""C++ function: math_max"""
|
|
192
|
+
...
|
|
193
|
+
|
|
194
|
+
@staticmethod
|
|
195
|
+
def math_floor(x: float) -> Any:
|
|
196
|
+
"""C++ function: math_floor"""
|
|
197
|
+
...
|
|
198
|
+
|
|
199
|
+
@staticmethod
|
|
200
|
+
def math_ceil(x: float) -> Any:
|
|
201
|
+
"""C++ function: math_ceil"""
|
|
202
|
+
...
|
|
203
|
+
|
|
204
|
+
@staticmethod
|
|
205
|
+
def array_sum(arr: List[float]) -> float:
|
|
206
|
+
"""C++ function: array_sum"""
|
|
207
|
+
...
|
|
208
|
+
|
|
209
|
+
@staticmethod
|
|
210
|
+
def array_isum(arr: List[Any]) -> Any:
|
|
211
|
+
"""C++ function: array_isum"""
|
|
212
|
+
...
|
|
213
|
+
|
|
214
|
+
@staticmethod
|
|
215
|
+
def array_avg(arr: List[float]) -> float:
|
|
216
|
+
"""C++ function: array_avg"""
|
|
217
|
+
...
|
|
218
|
+
|
|
219
|
+
@staticmethod
|
|
220
|
+
def array_min(arr: List[float]) -> float:
|
|
221
|
+
"""C++ function: array_min"""
|
|
222
|
+
...
|
|
223
|
+
|
|
224
|
+
@staticmethod
|
|
225
|
+
def array_max(arr: List[float]) -> float:
|
|
226
|
+
"""C++ function: array_max"""
|
|
227
|
+
...
|
|
228
|
+
|
|
229
|
+
@staticmethod
|
|
230
|
+
def range(start: Any, end: Any, step: Any = 1) -> List[Any]:
|
|
231
|
+
"""C++ function: range"""
|
|
232
|
+
...
|
|
233
|
+
|
|
234
|
+
@staticmethod
|
|
235
|
+
def loop_check_lt(i: Any, end: Any) -> bool:
|
|
236
|
+
"""C++ function: loop_check_lt"""
|
|
237
|
+
...
|
|
238
|
+
|
|
239
|
+
@staticmethod
|
|
240
|
+
def loop_check_le(i: Any, end: Any) -> bool:
|
|
241
|
+
"""C++ function: loop_check_le"""
|
|
242
|
+
...
|
|
243
|
+
|
|
244
|
+
@staticmethod
|
|
245
|
+
def loop_check_gt(i: Any, end: Any) -> bool:
|
|
246
|
+
"""C++ function: loop_check_gt"""
|
|
247
|
+
...
|
|
248
|
+
|
|
249
|
+
@staticmethod
|
|
250
|
+
def loop_check_ge(i: Any, end: Any) -> bool:
|
|
251
|
+
"""C++ function: loop_check_ge"""
|
|
252
|
+
...
|
|
253
|
+
|
|
254
|
+
@staticmethod
|
|
255
|
+
def num_cmp(a: float, b: float) -> int:
|
|
256
|
+
"""C++ function: num_cmp"""
|
|
257
|
+
...
|
|
258
|
+
|
|
259
|
+
@staticmethod
|
|
260
|
+
def eq_int(a: Any, b: Any) -> bool:
|
|
261
|
+
"""C++ function: eq_int"""
|
|
262
|
+
...
|
|
263
|
+
|
|
264
|
+
@staticmethod
|
|
265
|
+
def eq_float(a: float, b: float) -> bool:
|
|
266
|
+
"""C++ function: eq_float"""
|
|
267
|
+
...
|
|
268
|
+
|
|
269
|
+
@staticmethod
|
|
270
|
+
def eq_str(a: str, b: str) -> bool:
|
|
271
|
+
"""C++ function: eq_str"""
|
|
272
|
+
...
|
|
273
|
+
|
|
274
|
+
|
|
@@ -54,105 +54,6 @@ class Interpreter:
|
|
|
54
54
|
...
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
class Value:
|
|
58
|
-
"""C++ class: Value"""
|
|
59
|
-
|
|
60
|
-
@overload
|
|
61
|
-
def __init__(self) -> None: ...
|
|
62
|
-
@overload
|
|
63
|
-
def __init__(self, arg0: bool) -> None: ...
|
|
64
|
-
@overload
|
|
65
|
-
def __init__(self, arg0: Any) -> None: ...
|
|
66
|
-
@overload
|
|
67
|
-
def __init__(self, arg0: float) -> None: ...
|
|
68
|
-
@overload
|
|
69
|
-
def __init__(self, arg0: str) -> None: ...
|
|
70
|
-
|
|
71
|
-
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
72
|
-
"""Initialize Value instance."""
|
|
73
|
-
...
|
|
74
|
-
|
|
75
|
-
def as_bool(self) -> Any:
|
|
76
|
-
"""C++ method: as_bool"""
|
|
77
|
-
...
|
|
78
|
-
|
|
79
|
-
def as_float(self) -> Any:
|
|
80
|
-
"""C++ method: as_float"""
|
|
81
|
-
...
|
|
82
|
-
|
|
83
|
-
def as_int(self) -> Any:
|
|
84
|
-
"""C++ method: as_int"""
|
|
85
|
-
...
|
|
86
|
-
|
|
87
|
-
def as_string(self) -> Any:
|
|
88
|
-
"""C++ method: as_string"""
|
|
89
|
-
...
|
|
90
|
-
|
|
91
|
-
def get_type(self) -> Any:
|
|
92
|
-
"""C++ method: get_type"""
|
|
93
|
-
...
|
|
94
|
-
|
|
95
|
-
def is_bool(self) -> Any:
|
|
96
|
-
"""C++ method: is_bool"""
|
|
97
|
-
...
|
|
98
|
-
|
|
99
|
-
def is_dict(self) -> Any:
|
|
100
|
-
"""C++ method: is_dict"""
|
|
101
|
-
...
|
|
102
|
-
|
|
103
|
-
def is_float(self) -> Any:
|
|
104
|
-
"""C++ method: is_float"""
|
|
105
|
-
...
|
|
106
|
-
|
|
107
|
-
def is_int(self) -> Any:
|
|
108
|
-
"""C++ method: is_int"""
|
|
109
|
-
...
|
|
110
|
-
|
|
111
|
-
def is_list(self) -> Any:
|
|
112
|
-
"""C++ method: is_list"""
|
|
113
|
-
...
|
|
114
|
-
|
|
115
|
-
def is_null(self) -> Any:
|
|
116
|
-
"""C++ method: is_null"""
|
|
117
|
-
...
|
|
118
|
-
|
|
119
|
-
def is_number(self) -> Any:
|
|
120
|
-
"""C++ method: is_number"""
|
|
121
|
-
...
|
|
122
|
-
|
|
123
|
-
def is_string(self) -> Any:
|
|
124
|
-
"""C++ method: is_string"""
|
|
125
|
-
...
|
|
126
|
-
|
|
127
|
-
def is_set(self) -> Any:
|
|
128
|
-
"""C++ method: is_set"""
|
|
129
|
-
...
|
|
130
|
-
|
|
131
|
-
def is_stack(self) -> Any:
|
|
132
|
-
"""C++ method: is_stack"""
|
|
133
|
-
...
|
|
134
|
-
|
|
135
|
-
def is_container(self) -> Any:
|
|
136
|
-
"""C++ method: is_container"""
|
|
137
|
-
...
|
|
138
|
-
|
|
139
|
-
def to_bool(self) -> Any:
|
|
140
|
-
"""C++ method: to_bool"""
|
|
141
|
-
...
|
|
142
|
-
|
|
143
|
-
def to_string(self) -> Any:
|
|
144
|
-
"""C++ method: to_string"""
|
|
145
|
-
...
|
|
146
|
-
|
|
147
|
-
def size(self) -> Any:
|
|
148
|
-
"""C++ method: size"""
|
|
149
|
-
...
|
|
150
|
-
|
|
151
|
-
def contains(self) -> Any:
|
|
152
|
-
"""C++ method: contains"""
|
|
153
|
-
...
|
|
154
|
-
|
|
155
|
-
|
|
156
57
|
def run_cssl(source: str) -> str:
|
|
157
58
|
"""C++ function: run_cssl"""
|
|
158
59
|
...
|
|
@@ -33,29 +33,8 @@ PUBLIC(
|
|
|
33
33
|
METHOD(run_string)
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
// Value
|
|
37
|
-
|
|
38
|
-
CONSTRUCTOR()
|
|
39
|
-
CONSTRUCTOR(bool)
|
|
40
|
-
CONSTRUCTOR(int64_t)
|
|
41
|
-
CONSTRUCTOR(double)
|
|
42
|
-
CONSTRUCTOR(const std::string&)
|
|
43
|
-
METHOD_CONST(as_bool)
|
|
44
|
-
METHOD_CONST(as_float)
|
|
45
|
-
METHOD_CONST(as_int)
|
|
46
|
-
METHOD_CONST(as_string)
|
|
47
|
-
METHOD_CONST(get_type)
|
|
48
|
-
METHOD_CONST(is_bool)
|
|
49
|
-
METHOD_CONST(is_dict)
|
|
50
|
-
METHOD_CONST(is_float)
|
|
51
|
-
METHOD_CONST(is_int)
|
|
52
|
-
METHOD_CONST(is_list)
|
|
53
|
-
METHOD_CONST(is_null)
|
|
54
|
-
METHOD_CONST(is_number)
|
|
55
|
-
METHOD_CONST(is_string)
|
|
56
|
-
METHOD_CONST(to_bool)
|
|
57
|
-
METHOD_CONST(to_string)
|
|
58
|
-
}
|
|
36
|
+
// NOTE: Value class not exposed - uses shared_ptr internally which conflicts with pybind11 unique_ptr
|
|
37
|
+
// The Interpreter class returns strings directly via run_string()
|
|
59
38
|
|
|
60
39
|
// String Operations
|
|
61
40
|
cssl_core FUNC(str_concat)
|