IncludeCPP 4.3.0__py3-none-any.whl → 4.5.2__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.
Files changed (30) hide show
  1. includecpp/CHANGELOG.md +22 -0
  2. includecpp/__init__.py +1 -1
  3. includecpp/__init__.pyi +1 -4
  4. includecpp/cli/commands.py +1218 -25
  5. includecpp/core/cpp_api_extensions.pyi +204 -200
  6. includecpp/core/cssl/__init__.py +317 -0
  7. includecpp/core/cssl/cpp/build/api.pyd +0 -0
  8. includecpp/core/cssl/cpp/build/cssl_core.pyi +323 -0
  9. includecpp/core/cssl/cpp/build/libgcc_s_seh-1.dll +0 -0
  10. includecpp/core/cssl/cpp/build/libstdc++-6.dll +0 -0
  11. includecpp/core/cssl/cpp/build/libwinpthread-1.dll +0 -0
  12. includecpp/core/cssl/cpp/cssl_core.cp +108 -0
  13. includecpp/core/cssl/cpp/cssl_lexer.hpp +280 -0
  14. includecpp/core/cssl/cssl_builtins.py +142 -27
  15. includecpp/core/cssl/cssl_compiler.py +448 -0
  16. includecpp/core/cssl/cssl_optimizer.py +833 -0
  17. includecpp/core/cssl/cssl_parser.py +433 -38
  18. includecpp/core/cssl/cssl_runtime.py +294 -15
  19. includecpp/core/cssl/cssl_syntax.py +17 -0
  20. includecpp/core/cssl/cssl_types.py +143 -11
  21. includecpp/core/cssl_bridge.py +36 -2
  22. includecpp/generator/parser.cpp +38 -14
  23. includecpp/vscode/cssl/package.json +15 -0
  24. includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json +96 -0
  25. {includecpp-4.3.0.dist-info → includecpp-4.5.2.dist-info}/METADATA +1 -1
  26. {includecpp-4.3.0.dist-info → includecpp-4.5.2.dist-info}/RECORD +30 -21
  27. {includecpp-4.3.0.dist-info → includecpp-4.5.2.dist-info}/WHEEL +0 -0
  28. {includecpp-4.3.0.dist-info → includecpp-4.5.2.dist-info}/entry_points.txt +0 -0
  29. {includecpp-4.3.0.dist-info → includecpp-4.5.2.dist-info}/licenses/LICENSE +0 -0
  30. {includecpp-4.3.0.dist-info → includecpp-4.5.2.dist-info}/top_level.txt +0 -0
@@ -6,293 +6,306 @@ DO NOT EDIT - Auto-generated by IncludeCPP build system.
6
6
 
7
7
  from typing import Any, List, Dict, Optional, Union, Protocol, overload
8
8
 
9
- class Fast_listModuleWrapper(Protocol):
10
- """Type hints for fast_list module wrapper (VSCode autocomplete support)."""
9
+ class Cssl_coreModuleWrapper(Protocol):
10
+ """Type hints for cssl_core module wrapper (VSCode autocomplete support)."""
11
11
 
12
12
  def getInfo(self) -> Dict[str, Any]:
13
- """Get fast_list module information."""
13
+ """Get cssl_core module information."""
14
14
  ...
15
15
 
16
- class FastList:
17
- """C++ class: FastList"""
16
+ class Lexer:
17
+ """C++ class: Lexer"""
18
18
 
19
- def __init__(self) -> None:
20
- """Initialize FastList instance"""
21
- ...
22
-
23
- def add(self, *args: Any, **kwargs: Any) -> Any:
24
- """C++ method: add"""
25
- ...
26
-
27
- def get(self, *args: Any, **kwargs: Any) -> Any:
28
- """C++ method: get"""
29
- ...
30
-
31
- def size(self, *args: Any, **kwargs: Any) -> Any:
32
- """C++ method: size"""
19
+ def __init__(self, arg0: str) -> None:
20
+ """Initialize Lexer instance"""
33
21
  ...
34
22
 
35
- def clear(self, *args: Any, **kwargs: Any) -> Any:
36
- """C++ method: clear"""
23
+ def tokenize(self, *args: Any, **kwargs: Any) -> Any:
24
+ """C++ method: tokenize"""
37
25
  ...
38
26
 
39
27
 
40
- def fast_sort(self, *args: Any, **kwargs: Any) -> Any:
41
- """C++ function: fast_sort"""
42
- ...
28
+ class Token:
29
+ """C++ class: Token"""
43
30
 
44
- def fast_reverse(self, *args: Any, **kwargs: Any) -> Any:
45
- """C++ function: fast_reverse"""
46
- ...
31
+ @overload
32
+ def __init__(self) -> None: ...
33
+ @overload
34
+ def __init__(self, arg0: int, arg1: int, arg2: int) -> None: ...
35
+ @overload
36
+ def __init__(self, arg0: int, arg1: str, arg2: int, arg3: int) -> None: ...
37
+ @overload
38
+ def __init__(self, arg0: int, arg1: float, arg2: int, arg3: int) -> None: ...
39
+ @overload
40
+ def __init__(self, arg0: int, arg1: bool, arg2: int, arg3: int) -> None: ...
47
41
 
48
- def fast_sum(self, *args: Any, **kwargs: Any) -> Any:
49
- """C++ function: fast_sum"""
50
- ...
42
+ def __init__(self, *args: Any, **kwargs: Any) -> None:
43
+ """Initialize Token instance"""
44
+ ...
51
45
 
52
- def fast_max(self, *args: Any, **kwargs: Any) -> Any:
53
- """C++ function: fast_max"""
54
- ...
46
+ pass
55
47
 
56
- def fast_min(self, *args: Any, **kwargs: Any) -> Any:
57
- """C++ function: fast_min"""
58
- ...
48
+ class Interpreter:
49
+ """C++ class: Interpreter"""
59
50
 
51
+ def __init__(self) -> None:
52
+ """Initialize Interpreter instance"""
53
+ ...
60
54
 
55
+ def run(self, *args: Any, **kwargs: Any) -> Any:
56
+ """C++ method: run"""
57
+ ...
61
58
 
62
- class Game_mathModuleWrapper(Protocol):
63
- """Type hints for game_math module wrapper (VSCode autocomplete support)."""
59
+ def run_string(self, *args: Any, **kwargs: Any) -> Any:
60
+ """C++ method: run_string"""
61
+ ...
64
62
 
65
- def getInfo(self) -> Dict[str, Any]:
66
- """Get game_math module information."""
67
- ...
68
63
 
69
- class Vector2D:
70
- """C++ class: Vector2D"""
64
+ class Value:
65
+ """C++ class: Value"""
71
66
 
72
67
  @overload
73
68
  def __init__(self) -> None: ...
74
69
  @overload
75
- def __init__(self, arg0: float, arg1: float) -> None: ...
70
+ def __init__(self, arg0: bool) -> None: ...
71
+ @overload
72
+ def __init__(self, arg0: Any) -> None: ...
73
+ @overload
74
+ def __init__(self, arg0: float) -> None: ...
75
+ @overload
76
+ def __init__(self, arg0: str) -> None: ...
76
77
 
77
78
  def __init__(self, *args: Any, **kwargs: Any) -> None:
78
- """Initialize Vector2D instance"""
79
+ """Initialize Value instance"""
79
80
  ...
80
81
 
81
- def add(self, *args: Any, **kwargs: Any) -> Any:
82
- """C++ method: add"""
82
+ def as_bool(self, *args: Any, **kwargs: Any) -> Any:
83
+ """C++ method: as_bool"""
83
84
  ...
84
85
 
85
- def dot(self, *args: Any, **kwargs: Any) -> Any:
86
- """C++ method: dot"""
86
+ def as_float(self, *args: Any, **kwargs: Any) -> Any:
87
+ """C++ method: as_float"""
87
88
  ...
88
89
 
89
- def length(self, *args: Any, **kwargs: Any) -> Any:
90
- """C++ method: length"""
90
+ def as_int(self, *args: Any, **kwargs: Any) -> Any:
91
+ """C++ method: as_int"""
91
92
  ...
92
93
 
93
- def normalize(self, *args: Any, **kwargs: Any) -> Any:
94
- """C++ method: normalize"""
94
+ def as_string(self, *args: Any, **kwargs: Any) -> Any:
95
+ """C++ method: as_string"""
95
96
  ...
96
97
 
97
-
98
- def boxCollision(self, *args: Any, **kwargs: Any) -> Any:
99
- """C++ function: boxCollision"""
100
- ...
101
-
102
- def circleCollision(self, *args: Any, **kwargs: Any) -> Any:
103
- """C++ function: circleCollision"""
104
- ...
105
-
106
- def distance(self, *args: Any, **kwargs: Any) -> Any:
107
- """C++ function: distance"""
108
- ...
109
-
110
- def square(self, *args: Any, **kwargs: Any) -> Any:
111
- """C++ function: square"""
112
- ...
113
-
114
-
115
-
116
- class Solar_systemModuleWrapper(Protocol):
117
- """Type hints for solar_system module wrapper (VSCode autocomplete support)."""
118
-
119
- def getInfo(self) -> Dict[str, Any]:
120
- """Get solar_system module information."""
121
- ...
122
-
123
- class CelestialBody:
124
- """C++ class: CelestialBody"""
125
-
126
- def __init__(self) -> None:
127
- """Initialize CelestialBody instance"""
98
+ def get_type(self, *args: Any, **kwargs: Any) -> Any:
99
+ """C++ method: get_type"""
128
100
  ...
129
101
 
130
- def add_trajectory_point(self, *args: Any, **kwargs: Any) -> Any:
131
- """C++ method: add_trajectory_point"""
102
+ def is_bool(self, *args: Any, **kwargs: Any) -> Any:
103
+ """C++ method: is_bool"""
132
104
  ...
133
105
 
134
-
135
- class SolarSystem:
136
- """C++ class: SolarSystem"""
137
-
138
- def __init__(self) -> None:
139
- """Initialize SolarSystem instance"""
106
+ def is_dict(self, *args: Any, **kwargs: Any) -> Any:
107
+ """C++ method: is_dict"""
140
108
  ...
141
109
 
142
- def calculate_angular_momentum(self, *args: Any, **kwargs: Any) -> Any:
143
- """C++ method: calculate_angular_momentum"""
110
+ def is_float(self, *args: Any, **kwargs: Any) -> Any:
111
+ """C++ method: is_float"""
144
112
  ...
145
113
 
146
- def calculate_total_energy(self, *args: Any, **kwargs: Any) -> Any:
147
- """C++ method: calculate_total_energy"""
114
+ def is_int(self, *args: Any, **kwargs: Any) -> Any:
115
+ """C++ method: is_int"""
148
116
  ...
149
117
 
150
- def get_body_count(self, *args: Any, **kwargs: Any) -> Any:
151
- """C++ method: get_body_count"""
118
+ def is_list(self, *args: Any, **kwargs: Any) -> Any:
119
+ """C++ method: is_list"""
152
120
  ...
153
121
 
154
- def get_distance_from_sun(self, *args: Any, **kwargs: Any) -> Any:
155
- """C++ method: get_distance_from_sun"""
122
+ def is_null(self, *args: Any, **kwargs: Any) -> Any:
123
+ """C++ method: is_null"""
156
124
  ...
157
125
 
158
- def get_energy_error(self, *args: Any, **kwargs: Any) -> Any:
159
- """C++ method: get_energy_error"""
126
+ def is_number(self, *args: Any, **kwargs: Any) -> Any:
127
+ """C++ method: is_number"""
160
128
  ...
161
129
 
162
- def get_masses(self, *args: Any, **kwargs: Any) -> Any:
163
- """C++ method: get_masses"""
130
+ def is_string(self, *args: Any, **kwargs: Any) -> Any:
131
+ """C++ method: is_string"""
164
132
  ...
165
133
 
166
- def get_names(self, *args: Any, **kwargs: Any) -> Any:
167
- """C++ method: get_names"""
134
+ def to_bool(self, *args: Any, **kwargs: Any) -> Any:
135
+ """C++ method: to_bool"""
168
136
  ...
169
137
 
170
- def get_orbital_period(self, *args: Any, **kwargs: Any) -> Any:
171
- """C++ method: get_orbital_period"""
138
+ def to_string(self, *args: Any, **kwargs: Any) -> Any:
139
+ """C++ method: to_string"""
172
140
  ...
173
141
 
174
- def get_positions(self, *args: Any, **kwargs: Any) -> Any:
175
- """C++ method: get_positions"""
176
- ...
177
142
 
178
- def get_positions_au(self, *args: Any, **kwargs: Any) -> Any:
179
- """C++ method: get_positions_au"""
180
- ...
143
+ def run_cssl(self, *args: Any, **kwargs: Any) -> Any:
144
+ """C++ function: run_cssl"""
145
+ ...
181
146
 
182
- def get_radii(self, *args: Any, **kwargs: Any) -> Any:
183
- """C++ method: get_radii"""
184
- ...
147
+ def version(self, *args: Any, **kwargs: Any) -> Any:
148
+ """C++ function: version"""
149
+ ...
185
150
 
186
- def get_simulation_time(self, *args: Any, **kwargs: Any) -> Any:
187
- """C++ method: get_simulation_time"""
188
- ...
151
+ def is_keyword(self, *args: Any, **kwargs: Any) -> Any:
152
+ """C++ function: is_keyword"""
153
+ ...
189
154
 
190
- def get_simulation_time_days(self, *args: Any, **kwargs: Any) -> Any:
191
- """C++ method: get_simulation_time_days"""
192
- ...
155
+ def str_concat(self, *args: Any, **kwargs: Any) -> Any:
156
+ """C++ function: str_concat"""
157
+ ...
193
158
 
194
- def get_simulation_time_years(self, *args: Any, **kwargs: Any) -> Any:
195
- """C++ method: get_simulation_time_years"""
196
- ...
159
+ def str_contains(self, *args: Any, **kwargs: Any) -> Any:
160
+ """C++ function: str_contains"""
161
+ ...
197
162
 
198
- def get_speed(self, *args: Any, **kwargs: Any) -> Any:
199
- """C++ method: get_speed"""
200
- ...
163
+ def str_join(self, *args: Any, **kwargs: Any) -> Any:
164
+ """C++ function: str_join"""
165
+ ...
201
166
 
202
- def get_step_count(self, *args: Any, **kwargs: Any) -> Any:
203
- """C++ method: get_step_count"""
204
- ...
167
+ def str_lower(self, *args: Any, **kwargs: Any) -> Any:
168
+ """C++ function: str_lower"""
169
+ ...
205
170
 
206
- def get_total_energy(self, *args: Any, **kwargs: Any) -> Any:
207
- """C++ method: get_total_energy"""
208
- ...
171
+ def str_replace(self, *args: Any, **kwargs: Any) -> Any:
172
+ """C++ function: str_replace"""
173
+ ...
209
174
 
210
- def get_trajectory(self, *args: Any, **kwargs: Any) -> Any:
211
- """C++ method: get_trajectory"""
212
- ...
175
+ def str_split(self, *args: Any, **kwargs: Any) -> Any:
176
+ """C++ function: str_split"""
177
+ ...
213
178
 
214
- def get_velocities(self, *args: Any, **kwargs: Any) -> Any:
215
- """C++ method: get_velocities"""
216
- ...
179
+ def str_trim(self, *args: Any, **kwargs: Any) -> Any:
180
+ """C++ function: str_trim"""
181
+ ...
217
182
 
218
- def init_real_solar_system(self, *args: Any, **kwargs: Any) -> Any:
219
- """C++ method: init_real_solar_system"""
220
- ...
183
+ def str_upper(self, *args: Any, **kwargs: Any) -> Any:
184
+ """C++ function: str_upper"""
185
+ ...
221
186
 
222
- def simulate(self, *args: Any, **kwargs: Any) -> Any:
223
- """C++ method: simulate"""
224
- ...
187
+ def str_reverse(self, *args: Any, **kwargs: Any) -> Any:
188
+ """C++ function: str_reverse"""
189
+ ...
225
190
 
226
- def step(self, *args: Any, **kwargs: Any) -> Any:
227
- """C++ method: step"""
228
- ...
191
+ def str_len(self, *args: Any, **kwargs: Any) -> Any:
192
+ """C++ function: str_len"""
193
+ ...
229
194
 
195
+ def str_repeat(self, *args: Any, **kwargs: Any) -> Any:
196
+ """C++ function: str_repeat"""
197
+ ...
230
198
 
231
- def get_AU(self, *args: Any, **kwargs: Any) -> Any:
232
- """C++ function: get_AU"""
199
+ def str_startswith(self, *args: Any, **kwargs: Any) -> Any:
200
+ """C++ function: str_startswith"""
233
201
  ...
234
202
 
235
- def get_DAY(self, *args: Any, **kwargs: Any) -> Any:
236
- """C++ function: get_DAY"""
203
+ def str_endswith(self, *args: Any, **kwargs: Any) -> Any:
204
+ """C++ function: str_endswith"""
237
205
  ...
238
206
 
239
- def get_G(self, *args: Any, **kwargs: Any) -> Any:
240
- """C++ function: get_G"""
207
+ def str_indexof(self, *args: Any, **kwargs: Any) -> Any:
208
+ """C++ function: str_indexof"""
241
209
  ...
242
210
 
243
- def get_YEAR(self, *args: Any, **kwargs: Any) -> Any:
244
- """C++ function: get_YEAR"""
211
+ def str_substr(self, *args: Any, **kwargs: Any) -> Any:
212
+ """C++ function: str_substr"""
245
213
  ...
246
214
 
215
+ def str_cmp(self, *args: Any, **kwargs: Any) -> Any:
216
+ """C++ function: str_cmp"""
217
+ ...
247
218
 
219
+ def math_clamp(self, *args: Any, **kwargs: Any) -> Any:
220
+ """C++ function: math_clamp"""
221
+ ...
248
222
 
249
- class TemplatesModuleWrapper(Protocol):
250
- """Type hints for templates module wrapper (VSCode autocomplete support)."""
223
+ def math_ipow(self, *args: Any, **kwargs: Any) -> Any:
224
+ """C++ function: math_ipow"""
225
+ ...
251
226
 
252
- def getInfo(self) -> Dict[str, Any]:
253
- """Get templates module information."""
227
+ def math_pow(self, *args: Any, **kwargs: Any) -> Any:
228
+ """C++ function: math_pow"""
254
229
  ...
255
230
 
256
- class Pointf:
257
- """C++ class: Pointf"""
231
+ def math_mod(self, *args: Any, **kwargs: Any) -> Any:
232
+ """C++ function: math_mod"""
233
+ ...
258
234
 
259
- @overload
260
- def __init__(self) -> None: ...
261
- @overload
262
- def __init__(self, arg0: float, arg1: float) -> None: ...
235
+ def math_abs(self, *args: Any, **kwargs: Any) -> Any:
236
+ """C++ function: math_abs"""
237
+ ...
263
238
 
264
- def __init__(self, *args: Any, **kwargs: Any) -> None:
265
- """Initialize Pointf instance"""
266
- ...
239
+ def math_min(self, *args: Any, **kwargs: Any) -> Any:
240
+ """C++ function: math_min"""
241
+ ...
267
242
 
268
- def distanceFromOrigin(self, *args: Any, **kwargs: Any) -> Any:
269
- """C++ method: distanceFromOrigin"""
270
- ...
243
+ def math_max(self, *args: Any, **kwargs: Any) -> Any:
244
+ """C++ function: math_max"""
245
+ ...
271
246
 
247
+ def math_floor(self, *args: Any, **kwargs: Any) -> Any:
248
+ """C++ function: math_floor"""
249
+ ...
272
250
 
273
- class Pointi:
274
- """C++ class: Pointi"""
251
+ def math_ceil(self, *args: Any, **kwargs: Any) -> Any:
252
+ """C++ function: math_ceil"""
253
+ ...
275
254
 
276
- @overload
277
- def __init__(self) -> None: ...
278
- @overload
279
- def __init__(self, arg0: int, arg1: int) -> None: ...
255
+ def array_sum(self, *args: Any, **kwargs: Any) -> Any:
256
+ """C++ function: array_sum"""
257
+ ...
280
258
 
281
- def __init__(self, *args: Any, **kwargs: Any) -> None:
282
- """Initialize Pointi instance"""
283
- ...
259
+ def array_isum(self, *args: Any, **kwargs: Any) -> Any:
260
+ """C++ function: array_isum"""
261
+ ...
284
262
 
285
- def distanceFromOrigin(self, *args: Any, **kwargs: Any) -> Any:
286
- """C++ method: distanceFromOrigin"""
287
- ...
263
+ def array_avg(self, *args: Any, **kwargs: Any) -> Any:
264
+ """C++ function: array_avg"""
265
+ ...
288
266
 
267
+ def array_min(self, *args: Any, **kwargs: Any) -> Any:
268
+ """C++ function: array_min"""
269
+ ...
270
+
271
+ def array_max(self, *args: Any, **kwargs: Any) -> Any:
272
+ """C++ function: array_max"""
273
+ ...
274
+
275
+ def range(self, *args: Any, **kwargs: Any) -> Any:
276
+ """C++ function: range"""
277
+ ...
289
278
 
290
- def maximum(self, *args: Any, **kwargs: Any) -> Any:
291
- """C++ function: maximum"""
279
+ def loop_check_lt(self, *args: Any, **kwargs: Any) -> Any:
280
+ """C++ function: loop_check_lt"""
292
281
  ...
293
282
 
294
- def sumVector(self, *args: Any, **kwargs: Any) -> Any:
295
- """C++ function: sumVector"""
283
+ def loop_check_le(self, *args: Any, **kwargs: Any) -> Any:
284
+ """C++ function: loop_check_le"""
285
+ ...
286
+
287
+ def loop_check_gt(self, *args: Any, **kwargs: Any) -> Any:
288
+ """C++ function: loop_check_gt"""
289
+ ...
290
+
291
+ def loop_check_ge(self, *args: Any, **kwargs: Any) -> Any:
292
+ """C++ function: loop_check_ge"""
293
+ ...
294
+
295
+ def num_cmp(self, *args: Any, **kwargs: Any) -> Any:
296
+ """C++ function: num_cmp"""
297
+ ...
298
+
299
+ def eq_int(self, *args: Any, **kwargs: Any) -> Any:
300
+ """C++ function: eq_int"""
301
+ ...
302
+
303
+ def eq_float(self, *args: Any, **kwargs: Any) -> Any:
304
+ """C++ function: eq_float"""
305
+ ...
306
+
307
+ def eq_str(self, *args: Any, **kwargs: Any) -> Any:
308
+ """C++ function: eq_str"""
296
309
  ...
297
310
 
298
311
 
@@ -315,16 +328,7 @@ class CppApi:
315
328
  ...
316
329
 
317
330
  @overload
318
- def include(self, module_name: str = "fast_list", auto_update: Optional[bool] = None) -> Fast_listModuleWrapper: ...
319
-
320
- @overload
321
- def include(self, module_name: str = "game_math", auto_update: Optional[bool] = None) -> Game_mathModuleWrapper: ...
322
-
323
- @overload
324
- def include(self, module_name: str = "solar_system", auto_update: Optional[bool] = None) -> Solar_systemModuleWrapper: ...
325
-
326
- @overload
327
- def include(self, module_name: str = "templates", auto_update: Optional[bool] = None) -> TemplatesModuleWrapper: ...
331
+ def include(self, module_name: str = "cssl_core", auto_update: Optional[bool] = None) -> Cssl_coreModuleWrapper: ...
328
332
 
329
333
  @overload
330
334
  def include(self, module_name: str, auto_update: Optional[bool] = None) -> Any: ...