IncludeCPP 3.7.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/__init__.py +59 -0
- includecpp/__init__.pyi +255 -0
- includecpp/__main__.py +4 -0
- includecpp/cli/__init__.py +4 -0
- includecpp/cli/commands.py +8270 -0
- includecpp/cli/config_parser.py +127 -0
- includecpp/core/__init__.py +19 -0
- includecpp/core/ai_integration.py +2132 -0
- includecpp/core/build_manager.py +2416 -0
- includecpp/core/cpp_api.py +376 -0
- includecpp/core/cpp_api.pyi +95 -0
- includecpp/core/cppy_converter.py +3448 -0
- includecpp/core/cssl/CSSL_DOCUMENTATION.md +2075 -0
- includecpp/core/cssl/__init__.py +42 -0
- includecpp/core/cssl/cssl_builtins.py +2271 -0
- includecpp/core/cssl/cssl_builtins.pyi +1393 -0
- includecpp/core/cssl/cssl_events.py +621 -0
- includecpp/core/cssl/cssl_modules.py +2803 -0
- includecpp/core/cssl/cssl_parser.py +2575 -0
- includecpp/core/cssl/cssl_runtime.py +3051 -0
- includecpp/core/cssl/cssl_syntax.py +488 -0
- includecpp/core/cssl/cssl_types.py +1512 -0
- includecpp/core/cssl_bridge.py +882 -0
- includecpp/core/cssl_bridge.pyi +488 -0
- includecpp/core/error_catalog.py +802 -0
- includecpp/core/error_formatter.py +1016 -0
- includecpp/core/exceptions.py +97 -0
- includecpp/core/path_discovery.py +77 -0
- includecpp/core/project_ui.py +3370 -0
- includecpp/core/settings_ui.py +326 -0
- includecpp/generator/__init__.py +1 -0
- includecpp/generator/parser.cpp +1903 -0
- includecpp/generator/parser.h +281 -0
- includecpp/generator/type_resolver.cpp +363 -0
- includecpp/generator/type_resolver.h +68 -0
- includecpp/py.typed +0 -0
- includecpp/templates/cpp.proj.template +18 -0
- includecpp/vscode/__init__.py +1 -0
- includecpp/vscode/cssl/__init__.py +1 -0
- includecpp/vscode/cssl/language-configuration.json +38 -0
- includecpp/vscode/cssl/package.json +50 -0
- includecpp/vscode/cssl/snippets/cssl.snippets.json +1080 -0
- includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json +341 -0
- includecpp-3.7.3.dist-info/METADATA +1076 -0
- includecpp-3.7.3.dist-info/RECORD +49 -0
- includecpp-3.7.3.dist-info/WHEEL +5 -0
- includecpp-3.7.3.dist-info/entry_points.txt +2 -0
- includecpp-3.7.3.dist-info/licenses/LICENSE +21 -0
- includecpp-3.7.3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
3
|
+
"name": "CSSL",
|
|
4
|
+
"scopeName": "source.cssl",
|
|
5
|
+
"patterns": [
|
|
6
|
+
{ "include": "#comments" },
|
|
7
|
+
{ "include": "#strings" },
|
|
8
|
+
{ "include": "#numbers" },
|
|
9
|
+
{ "include": "#class-definition" },
|
|
10
|
+
{ "include": "#keywords" },
|
|
11
|
+
{ "include": "#types" },
|
|
12
|
+
{ "include": "#function-modifiers" },
|
|
13
|
+
{ "include": "#injection-operators" },
|
|
14
|
+
{ "include": "#namespace-functions" },
|
|
15
|
+
{ "include": "#filter-helpers" },
|
|
16
|
+
{ "include": "#this-access" },
|
|
17
|
+
{ "include": "#captured-references" },
|
|
18
|
+
{ "include": "#global-references" },
|
|
19
|
+
{ "include": "#shared-references" },
|
|
20
|
+
{ "include": "#instance-references" },
|
|
21
|
+
{ "include": "#module-references" },
|
|
22
|
+
{ "include": "#function-calls" },
|
|
23
|
+
{ "include": "#builtins" },
|
|
24
|
+
{ "include": "#operators" },
|
|
25
|
+
{ "include": "#constants" }
|
|
26
|
+
],
|
|
27
|
+
"repository": {
|
|
28
|
+
"comments": {
|
|
29
|
+
"patterns": [
|
|
30
|
+
{
|
|
31
|
+
"name": "comment.line.double-slash.cssl",
|
|
32
|
+
"match": "//.*$"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "comment.block.cssl",
|
|
36
|
+
"begin": "/\\*",
|
|
37
|
+
"end": "\\*/"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"strings": {
|
|
42
|
+
"patterns": [
|
|
43
|
+
{
|
|
44
|
+
"name": "string.quoted.double.cssl",
|
|
45
|
+
"begin": "\"",
|
|
46
|
+
"end": "\"",
|
|
47
|
+
"patterns": [
|
|
48
|
+
{
|
|
49
|
+
"name": "constant.character.escape.cssl",
|
|
50
|
+
"match": "\\\\."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "variable.other.interpolated.cssl",
|
|
54
|
+
"match": "<[a-zA-Z_][a-zA-Z0-9_]*>"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "string.quoted.single.cssl",
|
|
60
|
+
"begin": "'",
|
|
61
|
+
"end": "'",
|
|
62
|
+
"patterns": [
|
|
63
|
+
{
|
|
64
|
+
"name": "constant.character.escape.cssl",
|
|
65
|
+
"match": "\\\\."
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
},
|
|
71
|
+
"numbers": {
|
|
72
|
+
"patterns": [
|
|
73
|
+
{
|
|
74
|
+
"name": "constant.numeric.float.cssl",
|
|
75
|
+
"match": "\\b[0-9]+\\.[0-9]+\\b"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "constant.numeric.integer.cssl",
|
|
79
|
+
"match": "\\b[0-9]+\\b"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "constant.numeric.hex.cssl",
|
|
83
|
+
"match": "\\b0x[0-9A-Fa-f]+\\b"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"class-definition": {
|
|
88
|
+
"patterns": [
|
|
89
|
+
{
|
|
90
|
+
"name": "meta.class.cssl",
|
|
91
|
+
"begin": "\\b(class)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\{",
|
|
92
|
+
"beginCaptures": {
|
|
93
|
+
"1": { "name": "keyword.other.class.cssl" },
|
|
94
|
+
"2": { "name": "entity.name.class.cssl" }
|
|
95
|
+
},
|
|
96
|
+
"end": "\\}",
|
|
97
|
+
"patterns": [
|
|
98
|
+
{ "include": "#comments" },
|
|
99
|
+
{ "include": "#function-definition" },
|
|
100
|
+
{ "include": "#types" },
|
|
101
|
+
{ "include": "#this-access" },
|
|
102
|
+
{ "include": "#strings" },
|
|
103
|
+
{ "include": "#numbers" },
|
|
104
|
+
{ "include": "#operators" }
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"function-definition": {
|
|
110
|
+
"patterns": [
|
|
111
|
+
{
|
|
112
|
+
"name": "meta.function.cssl",
|
|
113
|
+
"match": "\\b(void|int|string|float|bool|dynamic|[A-Z][a-zA-Z0-9_]*)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*\\(",
|
|
114
|
+
"captures": {
|
|
115
|
+
"1": { "name": "storage.type.cssl" },
|
|
116
|
+
"2": { "name": "entity.name.function.cssl" }
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"keywords": {
|
|
122
|
+
"patterns": [
|
|
123
|
+
{
|
|
124
|
+
"name": "keyword.control.cssl",
|
|
125
|
+
"match": "\\b(if|else|elif|while|for|foreach|in|range|switch|case|default|break|continue|return|try|catch|finally|throw)\\b"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "keyword.other.class.cssl",
|
|
129
|
+
"match": "\\b(class|new|this)\\b"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "keyword.other.cssl",
|
|
133
|
+
"match": "\\b(service-init|service-run|service-include|struct|structure|define|main|package|package-includes|exec|as|global|include|get|payload)\\b"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "keyword.operator.logical.cssl",
|
|
137
|
+
"match": "\\b(and|or|not)\\b"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "keyword.other.async.cssl",
|
|
141
|
+
"match": "\\b(start|stop|wait_for|on_event|emit_event|await)\\b"
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"types": {
|
|
146
|
+
"patterns": [
|
|
147
|
+
{
|
|
148
|
+
"name": "storage.type.primitive.cssl",
|
|
149
|
+
"match": "\\b(int|string|float|bool|void|json|dynamic)\\b"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "storage.type.container.cssl",
|
|
153
|
+
"match": "\\b(array|vector|stack|list|dictionary|dict|map|datastruct|dataspace|shuffled|iterator|combo|openquote|instance)\\b"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "storage.type.generic.cssl",
|
|
157
|
+
"match": "\\b(array|vector|stack|list|dictionary|dict|map|datastruct|dataspace|shuffled|iterator|combo|openquote|instance)\\s*<",
|
|
158
|
+
"captures": {
|
|
159
|
+
"1": { "name": "storage.type.container.cssl" }
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"function-modifiers": {
|
|
165
|
+
"patterns": [
|
|
166
|
+
{
|
|
167
|
+
"name": "storage.modifier.cssl",
|
|
168
|
+
"match": "\\b(undefined|open|closed|private|virtual|meta|super|sqlbased)\\b"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
"injection-operators": {
|
|
173
|
+
"patterns": [
|
|
174
|
+
{
|
|
175
|
+
"name": "keyword.operator.injection.infuse.cssl",
|
|
176
|
+
"match": "(\\+<<==|<<==|-<<==|==>>\\+|==>>|-==>>)"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "keyword.operator.injection.brute.cssl",
|
|
180
|
+
"match": "(\\+<==|<==|-<==|==>\\+|==>|-==>)"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "keyword.operator.flow.cssl",
|
|
184
|
+
"match": "(->|<-)"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"namespace-functions": {
|
|
189
|
+
"patterns": [
|
|
190
|
+
{
|
|
191
|
+
"name": "support.function.namespace.json.cssl",
|
|
192
|
+
"match": "\\bjson::(read|write|parse|stringify|pretty|get|set|has|keys|values|merge)\\b"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "support.function.namespace.instance.cssl",
|
|
196
|
+
"match": "\\binstance::(getMethods|getClasses|getVars|getAll|call|has|type|exists)\\b"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "support.function.namespace.string.cssl",
|
|
200
|
+
"match": "\\bstring::(where|contains|not|startsWith|endsWith|length|lenght|cut|cutAfter|value)\\b"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"filter-helpers": {
|
|
205
|
+
"patterns": [
|
|
206
|
+
{
|
|
207
|
+
"name": "support.function.filter.cssl",
|
|
208
|
+
"match": "\\b(string|integer|json|array|vector|combo|dynamic|sql)::(where|contains|not|startsWith|endsWith|length|lenght|key|value|index|filterdb|blocked|data)\\b"
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"this-access": {
|
|
213
|
+
"patterns": [
|
|
214
|
+
{
|
|
215
|
+
"name": "variable.language.this.cssl",
|
|
216
|
+
"match": "\\bthis\\s*->"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "variable.language.this.member.cssl",
|
|
220
|
+
"match": "(?<=this->)[a-zA-Z_][a-zA-Z0-9_]*"
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
"captured-references": {
|
|
225
|
+
"patterns": [
|
|
226
|
+
{
|
|
227
|
+
"name": "variable.other.captured.cssl",
|
|
228
|
+
"match": "%[a-zA-Z_][a-zA-Z0-9_]*"
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
"global-references": {
|
|
233
|
+
"patterns": [
|
|
234
|
+
{
|
|
235
|
+
"name": "variable.other.global.cssl",
|
|
236
|
+
"match": "@[a-zA-Z_][a-zA-Z0-9_]*"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "variable.other.global-decl.cssl",
|
|
240
|
+
"match": "r@[a-zA-Z_][a-zA-Z0-9_]*"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "variable.other.self-ref.cssl",
|
|
244
|
+
"match": "s@[a-zA-Z_][a-zA-Z0-9_]*"
|
|
245
|
+
}
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
"shared-references": {
|
|
249
|
+
"patterns": [
|
|
250
|
+
{
|
|
251
|
+
"name": "variable.other.shared.cssl",
|
|
252
|
+
"match": "\\$[a-zA-Z_][a-zA-Z0-9_]*"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
},
|
|
256
|
+
"instance-references": {
|
|
257
|
+
"patterns": [
|
|
258
|
+
{
|
|
259
|
+
"name": "storage.type.instance.cssl",
|
|
260
|
+
"match": "\\binstance<\"[^\"]+\">"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
"module-references": {
|
|
265
|
+
"patterns": [
|
|
266
|
+
{
|
|
267
|
+
"name": "entity.name.type.module.cssl",
|
|
268
|
+
"match": "@[A-Z][a-zA-Z0-9_]*"
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
"function-calls": {
|
|
273
|
+
"patterns": [
|
|
274
|
+
{
|
|
275
|
+
"name": "entity.name.function.cssl",
|
|
276
|
+
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*(?=\\()"
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
},
|
|
280
|
+
"builtins": {
|
|
281
|
+
"patterns": [
|
|
282
|
+
{
|
|
283
|
+
"name": "support.function.builtin.io.cssl",
|
|
284
|
+
"match": "\\b(printl|print|println|input|read|readline|write|writeline)\\b"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "support.function.builtin.type.cssl",
|
|
288
|
+
"match": "\\b(len|type|toInt|toFloat|toString|toBool|typeof)\\b"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "support.function.builtin.control.cssl",
|
|
292
|
+
"match": "\\b(exit|sleep|range|isavailable)\\b"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"name": "support.function.builtin.special.cssl",
|
|
296
|
+
"match": "\\b(OpenFind|share|shared)\\b"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "support.variable.builtin.parameter.cssl",
|
|
300
|
+
"match": "\\bparameter\\.(get|return|count|all|has|returns)\\b"
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
"operators": {
|
|
305
|
+
"patterns": [
|
|
306
|
+
{
|
|
307
|
+
"name": "keyword.operator.comparison.cssl",
|
|
308
|
+
"match": "(==|!=|<=|>=|<|>)"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "keyword.operator.arithmetic.cssl",
|
|
312
|
+
"match": "(\\+\\+|--|\\+=|-=|\\*=|/=|\\+|-|\\*|/|%)"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "keyword.operator.logical.cssl",
|
|
316
|
+
"match": "(&&|\\|\\||!)"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "keyword.operator.assignment.cssl",
|
|
320
|
+
"match": "="
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "keyword.operator.member.cssl",
|
|
324
|
+
"match": "\\."
|
|
325
|
+
}
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
"constants": {
|
|
329
|
+
"patterns": [
|
|
330
|
+
{
|
|
331
|
+
"name": "constant.language.boolean.cssl",
|
|
332
|
+
"match": "\\b(true|false|True|False)\\b"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "constant.language.null.cssl",
|
|
336
|
+
"match": "\\b(null|None)\\b"
|
|
337
|
+
}
|
|
338
|
+
]
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|