IncludeCPP 3.7.14__py3-none-any.whl → 3.7.16__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 +1 -1
- includecpp/__init__.pyi +2 -2
- includecpp/core/cssl/__init__.py +1 -1
- includecpp/core/cssl/cssl_builtins.py +3 -3
- includecpp/core/cssl/cssl_builtins.pyi +380 -3
- includecpp/core/cssl/cssl_parser.py +1 -1
- includecpp/core/cssl/cssl_syntax.py +7 -7
- includecpp/core/cssl/cssl_types.py +1 -1
- includecpp/vscode/cssl/package.json +3 -4
- {includecpp-3.7.14.dist-info → includecpp-3.7.16.dist-info}/METADATA +2 -2
- {includecpp-3.7.14.dist-info → includecpp-3.7.16.dist-info}/RECORD +15 -15
- {includecpp-3.7.14.dist-info → includecpp-3.7.16.dist-info}/WHEEL +0 -0
- {includecpp-3.7.14.dist-info → includecpp-3.7.16.dist-info}/entry_points.txt +0 -0
- {includecpp-3.7.14.dist-info → includecpp-3.7.16.dist-info}/licenses/LICENSE +0 -0
- {includecpp-3.7.14.dist-info → includecpp-3.7.16.dist-info}/top_level.txt +0 -0
includecpp/__init__.py
CHANGED
includecpp/__init__.pyi
CHANGED
|
@@ -13,7 +13,7 @@ except ImportError:
|
|
|
13
13
|
pass # Generated during rebuild
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
# ========== CSSL Module
|
|
16
|
+
# ========== CSSL Module ==========
|
|
17
17
|
class _CSSLModule:
|
|
18
18
|
"""CSSL callable module created via CSSL.module()"""
|
|
19
19
|
def __call__(self, *args: Any) -> Any:
|
|
@@ -139,7 +139,7 @@ class _CSSLBridge:
|
|
|
139
139
|
...
|
|
140
140
|
|
|
141
141
|
|
|
142
|
-
# CSSL module instance
|
|
142
|
+
# CSSL module instance
|
|
143
143
|
CSSL: _CSSLBridge
|
|
144
144
|
|
|
145
145
|
__version__: str
|
includecpp/core/cssl/__init__.py
CHANGED
|
@@ -1680,7 +1680,7 @@ class CSSLBuiltins:
|
|
|
1680
1680
|
|
|
1681
1681
|
def builtin_cso_root(self, path: str = "") -> str:
|
|
1682
1682
|
"""
|
|
1683
|
-
Get absolute path relative to
|
|
1683
|
+
Get absolute path relative to project root directory
|
|
1684
1684
|
Usage: cso_root('/services/myservice.cssl')
|
|
1685
1685
|
Returns: Full absolute path to the file
|
|
1686
1686
|
"""
|
|
@@ -1729,7 +1729,7 @@ class CSSLBuiltins:
|
|
|
1729
1729
|
if os.path.exists(cwd_path):
|
|
1730
1730
|
filepath = cwd_path
|
|
1731
1731
|
else:
|
|
1732
|
-
# Fall back to cso_root for
|
|
1732
|
+
# Fall back to cso_root for service context
|
|
1733
1733
|
filepath = self.builtin_cso_root(filepath)
|
|
1734
1734
|
|
|
1735
1735
|
# Check file exists
|
|
@@ -1923,7 +1923,7 @@ class CSSLBuiltins:
|
|
|
1923
1923
|
if os.path.exists(cwd_path):
|
|
1924
1924
|
filepath = cwd_path
|
|
1925
1925
|
else:
|
|
1926
|
-
# Fall back to cso_root for
|
|
1926
|
+
# Fall back to cso_root for service context
|
|
1927
1927
|
filepath = self.builtin_cso_root(filepath)
|
|
1928
1928
|
|
|
1929
1929
|
# Check file exists
|
|
@@ -3,10 +3,10 @@ CSSL Built-in Functions - Complete Type Stubs & Documentation
|
|
|
3
3
|
==============================================================
|
|
4
4
|
|
|
5
5
|
This file provides comprehensive type hints and documentation for all CSSL
|
|
6
|
-
built-in functions and container types. All are available in
|
|
7
|
-
without imports.
|
|
6
|
+
built-in functions, data types, and container types. All are available in
|
|
7
|
+
CSSL scripts without imports.
|
|
8
8
|
|
|
9
|
-
Total: 200+ functions + 9 container classes across
|
|
9
|
+
Total: 200+ functions + 9 container classes + 10 data types across 20 categories.
|
|
10
10
|
|
|
11
11
|
Categories:
|
|
12
12
|
- Output Functions (7)
|
|
@@ -27,6 +27,7 @@ Categories:
|
|
|
27
27
|
- Container Classes (9) - stack<T>, vector<T>, array<T>, map<K,V>, etc.
|
|
28
28
|
- Function Keywords (10)
|
|
29
29
|
- Classes & OOP
|
|
30
|
+
- Data Types (10) - int, float, string, bool, dynamic, var, list, dict, void, null
|
|
30
31
|
- Special Syntax Reference
|
|
31
32
|
|
|
32
33
|
Container Types with Methods (use lowercase names for quick lookup):
|
|
@@ -42,6 +43,20 @@ Container Types with Methods (use lowercase names for quick lookup):
|
|
|
42
43
|
|
|
43
44
|
Type "vector." to see all available methods with documentation.
|
|
44
45
|
|
|
46
|
+
Data Types (use type aliases for quick lookup):
|
|
47
|
+
- int_t: int - whole numbers
|
|
48
|
+
- float_t: float - decimal numbers
|
|
49
|
+
- string_t: string - text with interpolation
|
|
50
|
+
- bool_t: bool - true/false values
|
|
51
|
+
- dynamic_t: dynamic - any type (auto-typed)
|
|
52
|
+
- var_t: var - type inference
|
|
53
|
+
- list_t: list - ordered collection
|
|
54
|
+
- dict_t: dict - key-value pairs
|
|
55
|
+
- void_t: void - no return value
|
|
56
|
+
- null_t: null/None - absence of value
|
|
57
|
+
|
|
58
|
+
Type "int_t" or "DataTypes." to see data type documentation.
|
|
59
|
+
|
|
45
60
|
Usage from Python:
|
|
46
61
|
from includecpp import CSSL
|
|
47
62
|
|
|
@@ -4151,6 +4166,365 @@ class SpecialSyntax:
|
|
|
4151
4166
|
"""
|
|
4152
4167
|
...
|
|
4153
4168
|
|
|
4169
|
+
# =============================================================================
|
|
4170
|
+
# DATA TYPES
|
|
4171
|
+
# =============================================================================
|
|
4172
|
+
|
|
4173
|
+
class DataTypes:
|
|
4174
|
+
"""
|
|
4175
|
+
CSSL Data Types Reference
|
|
4176
|
+
|
|
4177
|
+
CSSL supports various primitive and compound data types for variable
|
|
4178
|
+
declarations and function parameters/returns.
|
|
4179
|
+
"""
|
|
4180
|
+
|
|
4181
|
+
def int_type(self) -> None:
|
|
4182
|
+
"""Integer type - whole numbers.
|
|
4183
|
+
|
|
4184
|
+
Range: Platform-dependent (typically 64-bit signed integer)
|
|
4185
|
+
|
|
4186
|
+
Example:
|
|
4187
|
+
int x = 42;
|
|
4188
|
+
int negative = -100;
|
|
4189
|
+
int hex = 0xFF; // Hexadecimal
|
|
4190
|
+
int binary = 0b1010; // Binary (if supported)
|
|
4191
|
+
|
|
4192
|
+
// Arithmetic
|
|
4193
|
+
int sum = x + 10;
|
|
4194
|
+
int product = x * 2;
|
|
4195
|
+
int quotient = x / 5;
|
|
4196
|
+
int remainder = x % 7;
|
|
4197
|
+
|
|
4198
|
+
// Increment/decrement
|
|
4199
|
+
x++;
|
|
4200
|
+
x--;
|
|
4201
|
+
"""
|
|
4202
|
+
...
|
|
4203
|
+
|
|
4204
|
+
def float_type(self) -> None:
|
|
4205
|
+
"""Floating-point type - decimal numbers.
|
|
4206
|
+
|
|
4207
|
+
Supports standard IEEE 754 double precision.
|
|
4208
|
+
|
|
4209
|
+
Example:
|
|
4210
|
+
float pi = 3.14159;
|
|
4211
|
+
float negative = -2.5;
|
|
4212
|
+
float scientific = 1.5e10; // 1.5 × 10^10
|
|
4213
|
+
|
|
4214
|
+
// Arithmetic
|
|
4215
|
+
float result = pi * 2.0;
|
|
4216
|
+
float divided = 10.0 / 3.0; // 3.333...
|
|
4217
|
+
|
|
4218
|
+
// Conversion
|
|
4219
|
+
int rounded = int(pi); // 3
|
|
4220
|
+
float fromInt = float(42); // 42.0
|
|
4221
|
+
"""
|
|
4222
|
+
...
|
|
4223
|
+
|
|
4224
|
+
def string_type(self) -> None:
|
|
4225
|
+
"""String type - text sequences.
|
|
4226
|
+
|
|
4227
|
+
Supports single quotes, double quotes, and string interpolation.
|
|
4228
|
+
|
|
4229
|
+
Example:
|
|
4230
|
+
string name = "Alice";
|
|
4231
|
+
string alt = 'Bob'; // Single quotes work too
|
|
4232
|
+
|
|
4233
|
+
// String interpolation (f-string style)
|
|
4234
|
+
string greeting = "Hello {name}!"; // "Hello Alice!"
|
|
4235
|
+
string altStyle = "Hello <name>!"; // Also works
|
|
4236
|
+
|
|
4237
|
+
// Concatenation
|
|
4238
|
+
string full = "Hello" + " " + "World";
|
|
4239
|
+
string repeated = "ab" * 3; // "ababab"
|
|
4240
|
+
|
|
4241
|
+
// Methods/functions
|
|
4242
|
+
int length = len(name); // 5
|
|
4243
|
+
string upper = upper(name); // "ALICE"
|
|
4244
|
+
bool hasA = contains(name, "A"); // true
|
|
4245
|
+
|
|
4246
|
+
// Indexing
|
|
4247
|
+
string first = name[0]; // "A"
|
|
4248
|
+
string slice = substr(name, 0, 3); // "Ali"
|
|
4249
|
+
"""
|
|
4250
|
+
...
|
|
4251
|
+
|
|
4252
|
+
def bool_type(self) -> None:
|
|
4253
|
+
"""Boolean type - true/false values.
|
|
4254
|
+
|
|
4255
|
+
Example:
|
|
4256
|
+
bool isActive = true;
|
|
4257
|
+
bool isComplete = false;
|
|
4258
|
+
|
|
4259
|
+
// Logical operations
|
|
4260
|
+
bool and_result = true && false; // false
|
|
4261
|
+
bool or_result = true || false; // true
|
|
4262
|
+
bool not_result = !true; // false
|
|
4263
|
+
|
|
4264
|
+
// Comparisons return bool
|
|
4265
|
+
bool equal = (5 == 5); // true
|
|
4266
|
+
bool greater = (10 > 5); // true
|
|
4267
|
+
bool notEqual = (3 != 4); // true
|
|
4268
|
+
|
|
4269
|
+
// In conditions
|
|
4270
|
+
if (isActive) {
|
|
4271
|
+
printl("Active!");
|
|
4272
|
+
}
|
|
4273
|
+
|
|
4274
|
+
// Ternary operator
|
|
4275
|
+
string status = isActive ? "ON" : "OFF";
|
|
4276
|
+
"""
|
|
4277
|
+
...
|
|
4278
|
+
|
|
4279
|
+
def dynamic_type(self) -> None:
|
|
4280
|
+
"""Dynamic type - auto-typed, can hold any value.
|
|
4281
|
+
|
|
4282
|
+
Similar to Python's duck typing. Type is determined at assignment.
|
|
4283
|
+
Can change type when reassigned.
|
|
4284
|
+
|
|
4285
|
+
Example:
|
|
4286
|
+
dynamic x = 42; // Currently int
|
|
4287
|
+
printl(typeof(x)); // "int"
|
|
4288
|
+
|
|
4289
|
+
x = "hello"; // Now string
|
|
4290
|
+
printl(typeof(x)); // "str"
|
|
4291
|
+
|
|
4292
|
+
x = [1, 2, 3]; // Now list
|
|
4293
|
+
printl(typeof(x)); // "list"
|
|
4294
|
+
|
|
4295
|
+
// Useful for flexible functions
|
|
4296
|
+
dynamic result = getData(); // Unknown return type
|
|
4297
|
+
|
|
4298
|
+
// Type checking
|
|
4299
|
+
if (isint(x)) {
|
|
4300
|
+
printl("It's a number!");
|
|
4301
|
+
}
|
|
4302
|
+
"""
|
|
4303
|
+
...
|
|
4304
|
+
|
|
4305
|
+
def var_type(self) -> None:
|
|
4306
|
+
"""Var type - type inference from assigned value.
|
|
4307
|
+
|
|
4308
|
+
Type is inferred at assignment and remains fixed.
|
|
4309
|
+
More constrained than 'dynamic'.
|
|
4310
|
+
|
|
4311
|
+
Example:
|
|
4312
|
+
var count = 100; // Inferred as int
|
|
4313
|
+
var name = "Bob"; // Inferred as string
|
|
4314
|
+
var items = [1, 2, 3]; // Inferred as list
|
|
4315
|
+
|
|
4316
|
+
// Type is determined by right-hand side
|
|
4317
|
+
var result = calculate(); // Type of function return
|
|
4318
|
+
"""
|
|
4319
|
+
...
|
|
4320
|
+
|
|
4321
|
+
def list_type(self) -> None:
|
|
4322
|
+
"""List type - ordered collection of values.
|
|
4323
|
+
|
|
4324
|
+
Can contain mixed types. Zero-indexed.
|
|
4325
|
+
|
|
4326
|
+
Example:
|
|
4327
|
+
// Declaration
|
|
4328
|
+
list items = [1, 2, 3, 4, 5];
|
|
4329
|
+
list mixed = ["hello", 42, true, 3.14];
|
|
4330
|
+
list empty = [];
|
|
4331
|
+
|
|
4332
|
+
// Typed list (generic)
|
|
4333
|
+
list<int> numbers = [1, 2, 3];
|
|
4334
|
+
list<string> names = ["Alice", "Bob"];
|
|
4335
|
+
|
|
4336
|
+
// Access
|
|
4337
|
+
int first = items[0]; // 1
|
|
4338
|
+
int last = items[len(items)-1]; // 5
|
|
4339
|
+
|
|
4340
|
+
// Modification
|
|
4341
|
+
push(items, 6); // Add to end
|
|
4342
|
+
pop(items); // Remove from end
|
|
4343
|
+
items[0] = 100; // Set by index
|
|
4344
|
+
|
|
4345
|
+
// Iteration
|
|
4346
|
+
foreach (item in items) {
|
|
4347
|
+
printl(item);
|
|
4348
|
+
}
|
|
4349
|
+
|
|
4350
|
+
// Operations
|
|
4351
|
+
int length = len(items);
|
|
4352
|
+
bool hasValue = contains(items, 3);
|
|
4353
|
+
list sorted = sort(items);
|
|
4354
|
+
list reversed = reverse(items);
|
|
4355
|
+
list slice = slice(items, 1, 3);
|
|
4356
|
+
"""
|
|
4357
|
+
...
|
|
4358
|
+
|
|
4359
|
+
def dict_type(self) -> None:
|
|
4360
|
+
"""Dictionary type - key-value pairs.
|
|
4361
|
+
|
|
4362
|
+
Keys are typically strings or integers. Values can be any type.
|
|
4363
|
+
Also available as 'dictionary' keyword.
|
|
4364
|
+
|
|
4365
|
+
Example:
|
|
4366
|
+
// Declaration
|
|
4367
|
+
dict person = {
|
|
4368
|
+
"name": "Alice",
|
|
4369
|
+
"age": 30,
|
|
4370
|
+
"active": true
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4373
|
+
// Access
|
|
4374
|
+
string name = person["name"]; // "Alice"
|
|
4375
|
+
int age = person["age"]; // 30
|
|
4376
|
+
|
|
4377
|
+
// Modification
|
|
4378
|
+
person["email"] = "alice@example.com";
|
|
4379
|
+
delkey(person, "active");
|
|
4380
|
+
|
|
4381
|
+
// Methods
|
|
4382
|
+
list allKeys = keys(person); // ["name", "age", "email"]
|
|
4383
|
+
list allValues = values(person); // ["Alice", 30, "alice@..."]
|
|
4384
|
+
bool hasName = haskey(person, "name"); // true
|
|
4385
|
+
|
|
4386
|
+
// Iteration
|
|
4387
|
+
foreach (key in keys(person)) {
|
|
4388
|
+
printl(key + ": " + person[key]);
|
|
4389
|
+
}
|
|
4390
|
+
|
|
4391
|
+
// Safe access with default
|
|
4392
|
+
string value = getkey(person, "missing", "default");
|
|
4393
|
+
|
|
4394
|
+
// Typed dictionary
|
|
4395
|
+
dictionary<string> data;
|
|
4396
|
+
data["key"] = "value";
|
|
4397
|
+
"""
|
|
4398
|
+
...
|
|
4399
|
+
|
|
4400
|
+
def void_type(self) -> None:
|
|
4401
|
+
"""Void type - no return value.
|
|
4402
|
+
|
|
4403
|
+
Used for function declarations that don't return anything.
|
|
4404
|
+
|
|
4405
|
+
Example:
|
|
4406
|
+
void sayHello() {
|
|
4407
|
+
printl("Hello!");
|
|
4408
|
+
// No return statement needed
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
void processData(int value) {
|
|
4412
|
+
// Do something with value
|
|
4413
|
+
// Returns nothing
|
|
4414
|
+
}
|
|
4415
|
+
|
|
4416
|
+
// Calling
|
|
4417
|
+
sayHello();
|
|
4418
|
+
"""
|
|
4419
|
+
...
|
|
4420
|
+
|
|
4421
|
+
def null_type(self) -> None:
|
|
4422
|
+
"""Null type - absence of value.
|
|
4423
|
+
|
|
4424
|
+
Represents no value or undefined state.
|
|
4425
|
+
Can be used with 'null' or 'None'.
|
|
4426
|
+
|
|
4427
|
+
Example:
|
|
4428
|
+
dynamic x = null;
|
|
4429
|
+
var y = None; // Same as null
|
|
4430
|
+
|
|
4431
|
+
// Null checking
|
|
4432
|
+
if (x == null) {
|
|
4433
|
+
printl("No value");
|
|
4434
|
+
}
|
|
4435
|
+
|
|
4436
|
+
if (isnull(x)) {
|
|
4437
|
+
printl("x is null");
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4440
|
+
// Default value pattern
|
|
4441
|
+
string result = value != null ? value : "default";
|
|
4442
|
+
"""
|
|
4443
|
+
...
|
|
4444
|
+
|
|
4445
|
+
|
|
4446
|
+
# Data type aliases for direct lookup
|
|
4447
|
+
int_t = DataTypes.int_type
|
|
4448
|
+
"""int - Integer type for whole numbers.
|
|
4449
|
+
|
|
4450
|
+
Example:
|
|
4451
|
+
int count = 42;
|
|
4452
|
+
int negative = -100;
|
|
4453
|
+
count++;
|
|
4454
|
+
"""
|
|
4455
|
+
|
|
4456
|
+
float_t = DataTypes.float_type
|
|
4457
|
+
"""float - Floating-point type for decimal numbers.
|
|
4458
|
+
|
|
4459
|
+
Example:
|
|
4460
|
+
float pi = 3.14159;
|
|
4461
|
+
float result = 10.0 / 3.0;
|
|
4462
|
+
"""
|
|
4463
|
+
|
|
4464
|
+
string_t = DataTypes.string_type
|
|
4465
|
+
"""string - Text type with interpolation support.
|
|
4466
|
+
|
|
4467
|
+
Example:
|
|
4468
|
+
string name = "Alice";
|
|
4469
|
+
string msg = "Hello {name}!";
|
|
4470
|
+
"""
|
|
4471
|
+
|
|
4472
|
+
bool_t = DataTypes.bool_type
|
|
4473
|
+
"""bool - Boolean true/false type.
|
|
4474
|
+
|
|
4475
|
+
Example:
|
|
4476
|
+
bool active = true;
|
|
4477
|
+
bool done = false;
|
|
4478
|
+
"""
|
|
4479
|
+
|
|
4480
|
+
dynamic_t = DataTypes.dynamic_type
|
|
4481
|
+
"""dynamic - Auto-typed, can hold any value type.
|
|
4482
|
+
|
|
4483
|
+
Example:
|
|
4484
|
+
dynamic x = 42;
|
|
4485
|
+
x = "now a string";
|
|
4486
|
+
"""
|
|
4487
|
+
|
|
4488
|
+
var_t = DataTypes.var_type
|
|
4489
|
+
"""var - Type inference from assigned value.
|
|
4490
|
+
|
|
4491
|
+
Example:
|
|
4492
|
+
var count = 100; // Inferred as int
|
|
4493
|
+
var name = "Bob"; // Inferred as string
|
|
4494
|
+
"""
|
|
4495
|
+
|
|
4496
|
+
list_t = DataTypes.list_type
|
|
4497
|
+
"""list - Ordered collection of values.
|
|
4498
|
+
|
|
4499
|
+
Example:
|
|
4500
|
+
list items = [1, 2, 3];
|
|
4501
|
+
list<string> names = ["Alice", "Bob"];
|
|
4502
|
+
"""
|
|
4503
|
+
|
|
4504
|
+
dict_t = DataTypes.dict_type
|
|
4505
|
+
"""dict - Key-value pair collection.
|
|
4506
|
+
|
|
4507
|
+
Example:
|
|
4508
|
+
dict data = {"name": "Alice", "age": 30};
|
|
4509
|
+
dict<string> config;
|
|
4510
|
+
"""
|
|
4511
|
+
|
|
4512
|
+
void_t = DataTypes.void_type
|
|
4513
|
+
"""void - No return value (function declaration).
|
|
4514
|
+
|
|
4515
|
+
Example:
|
|
4516
|
+
void sayHello() { printl("Hello!"); }
|
|
4517
|
+
"""
|
|
4518
|
+
|
|
4519
|
+
null_t = DataTypes.null_type
|
|
4520
|
+
"""null/None - Absence of value.
|
|
4521
|
+
|
|
4522
|
+
Example:
|
|
4523
|
+
dynamic x = null;
|
|
4524
|
+
if (isnull(x)) { printl("No value"); }
|
|
4525
|
+
"""
|
|
4526
|
+
|
|
4527
|
+
|
|
4154
4528
|
# =============================================================================
|
|
4155
4529
|
# EXPORTS
|
|
4156
4530
|
# =============================================================================
|
|
@@ -4215,4 +4589,7 @@ __all__ = [
|
|
|
4215
4589
|
"stack", "vector", "array", "map", "datastruct", "iterator", "shuffled", "combo", "dataspace",
|
|
4216
4590
|
# Syntax Reference Classes
|
|
4217
4591
|
"FunctionKeywords", "ClassSyntax", "SpecialSyntax",
|
|
4592
|
+
# Data Types Reference
|
|
4593
|
+
"DataTypes", "int_t", "float_t", "string_t", "bool_t", "dynamic_t",
|
|
4594
|
+
"var_t", "list_t", "dict_t", "void_t", "null_t",
|
|
4218
4595
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
CSSL Syntax Highlighting
|
|
3
3
|
|
|
4
|
-
Provides syntax highlighting for CSSL
|
|
4
|
+
Provides syntax highlighting for CSSL code.
|
|
5
5
|
Can be used with:
|
|
6
6
|
- PyQt5/6 QSyntaxHighlighter
|
|
7
7
|
- VSCode/TextMate grammar export
|
|
@@ -216,8 +216,8 @@ class CSSLSyntaxRules:
|
|
|
216
216
|
class ColorScheme:
|
|
217
217
|
"""Color scheme for syntax highlighting"""
|
|
218
218
|
|
|
219
|
-
#
|
|
220
|
-
|
|
219
|
+
# CSSL Theme (Orange accent, dark background)
|
|
220
|
+
CSSL_THEME = {
|
|
221
221
|
TokenCategory.KEYWORD: '#508cff', # Blue
|
|
222
222
|
TokenCategory.BUILTIN: '#ff8c00', # Orange
|
|
223
223
|
TokenCategory.OPERATOR: '#c8c8d2', # Light gray
|
|
@@ -261,13 +261,13 @@ def highlight_cssl(source: str, scheme: Dict[TokenCategory, str] = None) -> List
|
|
|
261
261
|
|
|
262
262
|
Args:
|
|
263
263
|
source: CSSL source code
|
|
264
|
-
scheme: Color scheme dict (defaults to
|
|
264
|
+
scheme: Color scheme dict (defaults to CSSL_THEME)
|
|
265
265
|
|
|
266
266
|
Returns:
|
|
267
267
|
List of (start, end, color, category) tuples
|
|
268
268
|
"""
|
|
269
269
|
if scheme is None:
|
|
270
|
-
scheme = ColorScheme.
|
|
270
|
+
scheme = ColorScheme.CSSL_THEME
|
|
271
271
|
|
|
272
272
|
highlights = []
|
|
273
273
|
rules = CSSLSyntaxRules.get_rules()
|
|
@@ -337,7 +337,7 @@ def highlight_cssl_ansi(source: str) -> str:
|
|
|
337
337
|
}
|
|
338
338
|
RESET = '\033[0m'
|
|
339
339
|
|
|
340
|
-
highlights = highlight_cssl(source, ColorScheme.
|
|
340
|
+
highlights = highlight_cssl(source, ColorScheme.CSSL_THEME)
|
|
341
341
|
|
|
342
342
|
# Build highlighted string
|
|
343
343
|
result = []
|
|
@@ -388,7 +388,7 @@ def get_pyqt_highlighter():
|
|
|
388
388
|
|
|
389
389
|
def _setup_rules(self):
|
|
390
390
|
"""Setup highlighting rules"""
|
|
391
|
-
scheme = ColorScheme.
|
|
391
|
+
scheme = ColorScheme.CSSL_THEME
|
|
392
392
|
|
|
393
393
|
for rule in CSSLSyntaxRules.get_rules():
|
|
394
394
|
fmt = QTextCharFormat()
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cssl",
|
|
3
|
-
"displayName": "CSSL
|
|
3
|
+
"displayName": "CSSL Language",
|
|
4
4
|
"description": "Professional syntax highlighting, snippets, and language support for CSSL scripts (.cssl, .cssl-pl, .cssl-mod)",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.3",
|
|
6
6
|
"publisher": "IncludeCPP",
|
|
7
7
|
"icon": "images/cssl.png",
|
|
8
8
|
"engines": {
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
],
|
|
15
15
|
"keywords": [
|
|
16
16
|
"cssl",
|
|
17
|
-
"cso",
|
|
18
17
|
"script",
|
|
19
18
|
"includecpp",
|
|
20
19
|
"c++",
|
|
@@ -24,7 +23,7 @@
|
|
|
24
23
|
"languages": [
|
|
25
24
|
{
|
|
26
25
|
"id": "cssl",
|
|
27
|
-
"aliases": ["CSSL", "cssl"
|
|
26
|
+
"aliases": ["CSSL", "cssl"],
|
|
28
27
|
"extensions": [".cssl"],
|
|
29
28
|
"configuration": "./language-configuration.json",
|
|
30
29
|
"icon": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: IncludeCPP
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.16
|
|
4
4
|
Summary: Professional C++ Python bindings with type-generic templates, pystubs and native threading
|
|
5
5
|
Home-page: https://github.com/liliassg/IncludeCPP
|
|
6
6
|
Author: Lilias Hatterscheidt
|
|
@@ -623,7 +623,7 @@ Then check **"Enable Experimental Features"** and save.
|
|
|
623
623
|
|
|
624
624
|
Use at your own discretion. Report issues at: https://github.com/liliassg/IncludeCPP/issues
|
|
625
625
|
|
|
626
|
-
# CSSL -
|
|
626
|
+
# CSSL - C-Style Scripting Language
|
|
627
627
|
|
|
628
628
|
IncludeCPP includes CSSL, a scripting language with advanced data manipulation features.
|
|
629
629
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
includecpp/__init__.py,sha256=
|
|
2
|
-
includecpp/__init__.pyi,sha256=
|
|
1
|
+
includecpp/__init__.py,sha256=ePS4-92RVwu-pgbSjIZYIZ6k5yzXNb9j_eQmaehmadg,1673
|
|
2
|
+
includecpp/__init__.pyi,sha256=uSDYlbqd2TinmrdepmE_zvN25jd3Co2cgyPzXgDpopM,7193
|
|
3
3
|
includecpp/__main__.py,sha256=d6QK0PkvUe1ENofpmHRAg3bwNbZr8PiRscfI3-WRfVg,72
|
|
4
4
|
includecpp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
includecpp/cli/__init__.py,sha256=Yda-4a5QJb_tKu35YQNfc5lu-LewTsM5abqNNkzS47M,113
|
|
@@ -20,15 +20,15 @@ includecpp/core/path_discovery.py,sha256=jI0oSq6Hsd4LKXmU4dOiGSrXcEO_KWMXfQ5_ylB
|
|
|
20
20
|
includecpp/core/project_ui.py,sha256=la2EQZKmUkJGuJxnbs09hH1ZhBh9bfndo6okzZsk2dQ,141134
|
|
21
21
|
includecpp/core/settings_ui.py,sha256=B2SlwgdplF2KiBk5UYf2l8Jjifjd0F-FmBP0DPsVCEQ,11798
|
|
22
22
|
includecpp/core/cssl/CSSL_DOCUMENTATION.md,sha256=47sUPO-FMq_8_CrJBZFoFBgSO3gSi5zoB1Xp7oeifho,40773
|
|
23
|
-
includecpp/core/cssl/__init__.py,sha256=
|
|
24
|
-
includecpp/core/cssl/cssl_builtins.py,sha256=
|
|
25
|
-
includecpp/core/cssl/cssl_builtins.pyi,sha256=
|
|
23
|
+
includecpp/core/cssl/__init__.py,sha256=bMG8UO4eMfHEsyqp-wkiMLu-KERNcKUQF_s8yL8PLKU,1810
|
|
24
|
+
includecpp/core/cssl/cssl_builtins.py,sha256=h9cN9GUn5jr8ed_xoXk-sturSSHtvBzffMLBBS3789I,85006
|
|
25
|
+
includecpp/core/cssl/cssl_builtins.pyi,sha256=MMy3NGUBGn8-4u4eUgf8wyENNMSmcFaiAd-icQbdbQE,124996
|
|
26
26
|
includecpp/core/cssl/cssl_events.py,sha256=nupIcXW_Vjdud7zCU6hdwkQRQ0MujlPM7Tk2u7eDAiY,21013
|
|
27
27
|
includecpp/core/cssl/cssl_modules.py,sha256=cUg0-zdymMnWWTsA_BUrW5dx4R04dHpKcUhm-Wfiwwo,103006
|
|
28
|
-
includecpp/core/cssl/cssl_parser.py,sha256=
|
|
28
|
+
includecpp/core/cssl/cssl_parser.py,sha256=t1C0fplyJz_ZqJOlfx5fG2GZZtCMJj4fCIgWzf-1JAY,113147
|
|
29
29
|
includecpp/core/cssl/cssl_runtime.py,sha256=3b14wEWvLpFDVA0r0pyNqy02l7s9FTdXQd61BdpPlZg,131780
|
|
30
|
-
includecpp/core/cssl/cssl_syntax.py,sha256=
|
|
31
|
-
includecpp/core/cssl/cssl_types.py,sha256=
|
|
30
|
+
includecpp/core/cssl/cssl_syntax.py,sha256=bgo3NFehoPTQa5dqwNd_CstkVGVCNYAXbGYUcu5BEN0,16982
|
|
31
|
+
includecpp/core/cssl/cssl_types.py,sha256=dF3oPagZXMsY4tguOrIA_Oei3mVly2MGM889Yb4_ARE,48190
|
|
32
32
|
includecpp/generator/__init__.py,sha256=Rsy41bwimaEloD3gDRR_znPfIJzIsCFuWZgCTJBLJlc,62
|
|
33
33
|
includecpp/generator/parser.cpp,sha256=hbhHdtFH65rzp6prnARN9pNFF_ssr0NseVVcxq0fJh4,76833
|
|
34
34
|
includecpp/generator/parser.h,sha256=EDm0b-pEesIIIQQ2PvH5h2qwlqJU9BH8SiMV7MWbsTo,11073
|
|
@@ -38,14 +38,14 @@ includecpp/templates/cpp.proj.template,sha256=Iy-L8I4Cl3tIgBMx1Qp5h6gURvkqOAqyod
|
|
|
38
38
|
includecpp/vscode/__init__.py,sha256=yLKw-_7MTX1Rx3jLk5JjharJQfFXbwtZVE7YqHpM7yg,39
|
|
39
39
|
includecpp/vscode/cssl/__init__.py,sha256=rQJAx5X05v-mAwqX1Qb-rbZO219iR73MziFNRUCNUIo,31
|
|
40
40
|
includecpp/vscode/cssl/language-configuration.json,sha256=61Q00cKI9may5L8YpxMmvfo6PAc-abdJqApfR85DWuw,904
|
|
41
|
-
includecpp/vscode/cssl/package.json,sha256=
|
|
41
|
+
includecpp/vscode/cssl/package.json,sha256=jMmrDZ2uYSEWBLqTvaYXYlPk91uc3sHEhKZCTHAHFxk,2718
|
|
42
42
|
includecpp/vscode/cssl/images/cssl.png,sha256=BxAGsnfS0ZzzCvqV6Zb1OAJAZpDUoXlR86MsvUGlSZw,510
|
|
43
43
|
includecpp/vscode/cssl/images/cssl_pl.png,sha256=z4WMk7g6YCTbUUbSFk343BO6yi_OmNEVYkRenWGydwM,799
|
|
44
44
|
includecpp/vscode/cssl/snippets/cssl.snippets.json,sha256=l4SCEPR3CsPxA8HIVLKYY__I979TfKzYWtH1KYIsboo,33062
|
|
45
45
|
includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json,sha256=XKRLBOHlCqDDnGPvmNHDQPsIMR1UD9PBaJIlgZOiPqM,21173
|
|
46
|
-
includecpp-3.7.
|
|
47
|
-
includecpp-3.7.
|
|
48
|
-
includecpp-3.7.
|
|
49
|
-
includecpp-3.7.
|
|
50
|
-
includecpp-3.7.
|
|
51
|
-
includecpp-3.7.
|
|
46
|
+
includecpp-3.7.16.dist-info/licenses/LICENSE,sha256=fWCsGGsiWZir0UzDd20Hh-3wtRyk1zqUntvtVuAWhvc,1093
|
|
47
|
+
includecpp-3.7.16.dist-info/METADATA,sha256=dLmld76znqXtp79rJbicPVPP1YxFctci8Fj0VySe3LM,32122
|
|
48
|
+
includecpp-3.7.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
49
|
+
includecpp-3.7.16.dist-info/entry_points.txt,sha256=6A5Mif9gi0139Bf03W5plAb3wnAgbNaEVe1HJoGE-2o,59
|
|
50
|
+
includecpp-3.7.16.dist-info/top_level.txt,sha256=RFUaR1KG-M6mCYwP6w4ydP5Cgc8yNbP78jxGAvyjMa8,11
|
|
51
|
+
includecpp-3.7.16.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|