IncludeCPP 3.7.25__py3-none-any.whl → 3.7.26__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/core/cssl/cssl_parser.py +13 -2
- includecpp/vscode/cssl/extension.js +5 -5
- includecpp/vscode/cssl/snippets/cssl.snippets.json +88 -0
- {includecpp-3.7.25.dist-info → includecpp-3.7.26.dist-info}/METADATA +4 -225
- {includecpp-3.7.25.dist-info → includecpp-3.7.26.dist-info}/RECORD +10 -10
- {includecpp-3.7.25.dist-info → includecpp-3.7.26.dist-info}/WHEEL +0 -0
- {includecpp-3.7.25.dist-info → includecpp-3.7.26.dist-info}/entry_points.txt +0 -0
- {includecpp-3.7.25.dist-info → includecpp-3.7.26.dist-info}/licenses/LICENSE +0 -0
- {includecpp-3.7.25.dist-info → includecpp-3.7.26.dist-info}/top_level.txt +0 -0
includecpp/__init__.py
CHANGED
|
@@ -716,7 +716,7 @@ class CSSLParser:
|
|
|
716
716
|
def _is_type_keyword(self, value: str) -> bool:
|
|
717
717
|
"""Check if a keyword is a type declaration"""
|
|
718
718
|
return value in ('int', 'string', 'float', 'bool', 'void', 'json', 'array', 'vector', 'stack',
|
|
719
|
-
'list', 'dictionary', 'dict', 'instance', 'map',
|
|
719
|
+
'list', 'dictionary', 'dict', 'instance', 'map', 'openquote', 'parameter',
|
|
720
720
|
'dynamic', 'datastruct', 'dataspace', 'shuffled', 'iterator', 'combo', 'structure')
|
|
721
721
|
|
|
722
722
|
def _looks_like_function_declaration(self) -> bool:
|
|
@@ -727,14 +727,17 @@ class CSSLParser:
|
|
|
727
727
|
- undefined int funcName(...)
|
|
728
728
|
- vector<string> funcName(...)
|
|
729
729
|
- undefined void funcName(...)
|
|
730
|
+
- private super virtual meta FuncName(...) <- modifiers without return type
|
|
730
731
|
"""
|
|
731
732
|
saved_pos = self.pos
|
|
733
|
+
has_modifiers = False
|
|
732
734
|
|
|
733
735
|
# Skip modifiers (undefined, open, meta, super, closed, private, virtual)
|
|
734
736
|
while self._check(TokenType.KEYWORD) and self._is_function_modifier(self._current().value):
|
|
735
737
|
self._advance()
|
|
738
|
+
has_modifiers = True
|
|
736
739
|
|
|
737
|
-
# Check for type keyword
|
|
740
|
+
# Check for type keyword (optional if modifiers present)
|
|
738
741
|
if self._check(TokenType.KEYWORD) and self._is_type_keyword(self._current().value):
|
|
739
742
|
self._advance()
|
|
740
743
|
|
|
@@ -756,6 +759,14 @@ class CSSLParser:
|
|
|
756
759
|
self.pos = saved_pos
|
|
757
760
|
return is_func
|
|
758
761
|
|
|
762
|
+
# If we have modifiers and the next token is an identifier followed by (
|
|
763
|
+
# This handles: private super virtual meta FuncName()
|
|
764
|
+
elif has_modifiers and self._check(TokenType.IDENTIFIER):
|
|
765
|
+
self._advance()
|
|
766
|
+
is_func = self._check(TokenType.PAREN_START)
|
|
767
|
+
self.pos = saved_pos
|
|
768
|
+
return is_func
|
|
769
|
+
|
|
759
770
|
self.pos = saved_pos
|
|
760
771
|
return False
|
|
761
772
|
|
|
@@ -53,23 +53,23 @@ function activate(context) {
|
|
|
53
53
|
// Run the CSSL file using includecpp cssl run
|
|
54
54
|
const args = ['-m', 'includecpp', 'cssl', 'run', filePath];
|
|
55
55
|
|
|
56
|
-
const
|
|
56
|
+
const childProcess = spawn(pythonPath, args, {
|
|
57
57
|
cwd: path.dirname(filePath),
|
|
58
58
|
env: { ...process.env }
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
let hasError = false;
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
childProcess.stdout.on('data', (data) => {
|
|
64
64
|
outputChannel.append(data.toString());
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
childProcess.stderr.on('data', (data) => {
|
|
68
68
|
hasError = true;
|
|
69
69
|
outputChannel.append(data.toString());
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
childProcess.on('close', (code) => {
|
|
73
73
|
outputChannel.appendLine('');
|
|
74
74
|
outputChannel.appendLine('─'.repeat(50));
|
|
75
75
|
if (code === 0) {
|
|
@@ -79,7 +79,7 @@ function activate(context) {
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
childProcess.on('error', (err) => {
|
|
83
83
|
outputChannel.appendLine(`[CSSL] Error: ${err.message}`);
|
|
84
84
|
vscode.window.showErrorMessage(`Failed to run CSSL: ${err.message}. Make sure IncludeCPP is installed (pip install includecpp).`);
|
|
85
85
|
});
|
|
@@ -1076,5 +1076,93 @@
|
|
|
1076
1076
|
"}"
|
|
1077
1077
|
],
|
|
1078
1078
|
"description": "Open parameter function"
|
|
1079
|
+
},
|
|
1080
|
+
"Undefined Function": {
|
|
1081
|
+
"prefix": ["undefined", "undef"],
|
|
1082
|
+
"body": [
|
|
1083
|
+
"undefined ${1:void} ${2:FuncName}(${3:params}) {",
|
|
1084
|
+
"\t$0",
|
|
1085
|
+
"}"
|
|
1086
|
+
],
|
|
1087
|
+
"description": "Function with undefined modifier - suppresses all errors during execution"
|
|
1088
|
+
},
|
|
1089
|
+
"Private Function": {
|
|
1090
|
+
"prefix": "private",
|
|
1091
|
+
"body": [
|
|
1092
|
+
"private ${1:void} ${2:FuncName}(${3:params}) {",
|
|
1093
|
+
"\t$0",
|
|
1094
|
+
"}"
|
|
1095
|
+
],
|
|
1096
|
+
"description": "Private function - disables all external injections"
|
|
1097
|
+
},
|
|
1098
|
+
"Closed Function": {
|
|
1099
|
+
"prefix": "closed",
|
|
1100
|
+
"body": [
|
|
1101
|
+
"closed ${1:void} ${2:FuncName}(${3:params}) {",
|
|
1102
|
+
"\t$0",
|
|
1103
|
+
"}"
|
|
1104
|
+
],
|
|
1105
|
+
"description": "Closed function - protects from external injection modifications"
|
|
1106
|
+
},
|
|
1107
|
+
"Virtual Function": {
|
|
1108
|
+
"prefix": "virtual",
|
|
1109
|
+
"body": [
|
|
1110
|
+
"virtual ${1:void} ${2:FuncName}(${3:params}) {",
|
|
1111
|
+
"\t$0",
|
|
1112
|
+
"}"
|
|
1113
|
+
],
|
|
1114
|
+
"description": "Virtual function - can be overridden in child classes"
|
|
1115
|
+
},
|
|
1116
|
+
"Meta Function": {
|
|
1117
|
+
"prefix": "meta",
|
|
1118
|
+
"body": [
|
|
1119
|
+
"meta ${1:void} ${2:FuncName}(${3:params}) {",
|
|
1120
|
+
"\t$0",
|
|
1121
|
+
"}"
|
|
1122
|
+
],
|
|
1123
|
+
"description": "Meta function - metaprogramming function for code generation"
|
|
1124
|
+
},
|
|
1125
|
+
"Super Function": {
|
|
1126
|
+
"prefix": "super",
|
|
1127
|
+
"body": [
|
|
1128
|
+
"super ${1:void} ${2:FuncName}(${3:params}) {",
|
|
1129
|
+
"\t$0",
|
|
1130
|
+
"}"
|
|
1131
|
+
],
|
|
1132
|
+
"description": "Super function - enhanced privileges for system-level operations"
|
|
1133
|
+
},
|
|
1134
|
+
"SQLBased Function": {
|
|
1135
|
+
"prefix": "sqlbased",
|
|
1136
|
+
"body": [
|
|
1137
|
+
"sqlbased ${1:void} ${2:FuncName}(${3:params}) {",
|
|
1138
|
+
"\t$0",
|
|
1139
|
+
"}"
|
|
1140
|
+
],
|
|
1141
|
+
"description": "SQL-based function - optimized for database operations"
|
|
1142
|
+
},
|
|
1143
|
+
"API Function with Modifiers": {
|
|
1144
|
+
"prefix": ["apifunc", "globalapi"],
|
|
1145
|
+
"body": [
|
|
1146
|
+
"private super virtual meta ${1:GlobalApi}() {",
|
|
1147
|
+
"\tinstance<\"${2:apiName}\"> api;",
|
|
1148
|
+
"\tclass ${3:Api} {",
|
|
1149
|
+
"\t\tdefine ${4:getMethod}() {",
|
|
1150
|
+
"\t\t\t$0",
|
|
1151
|
+
"\t\t}",
|
|
1152
|
+
"\t}",
|
|
1153
|
+
"\t%api +<== new ${3}();",
|
|
1154
|
+
"\treturn %api;",
|
|
1155
|
+
"}"
|
|
1156
|
+
],
|
|
1157
|
+
"description": "Global API function with full modifiers and instance pattern"
|
|
1158
|
+
},
|
|
1159
|
+
"Combined Modifiers Function": {
|
|
1160
|
+
"prefix": "modfunc",
|
|
1161
|
+
"body": [
|
|
1162
|
+
"${1|undefined,private,closed,virtual,meta,super,sqlbased|} ${2|undefined,private,closed,virtual,meta,super,sqlbased,void,int,string|} ${3:FuncName}(${4:params}) {",
|
|
1163
|
+
"\t$0",
|
|
1164
|
+
"}"
|
|
1165
|
+
],
|
|
1166
|
+
"description": "Function with selectable modifier combinations"
|
|
1079
1167
|
}
|
|
1080
1168
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: IncludeCPP
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.26
|
|
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
|
|
@@ -839,7 +839,7 @@ print(math_mod.multiply(4, 5)) # 20
|
|
|
839
839
|
cssl = CSSL.CsslLang()
|
|
840
840
|
|
|
841
841
|
# Register code as payload
|
|
842
|
-
cssl.
|
|
842
|
+
cssl.script(<name>, "helpers", '''
|
|
843
843
|
global version = "1.0.0";
|
|
844
844
|
void log(string msg) {
|
|
845
845
|
printl("[LOG] " + msg);
|
|
@@ -847,230 +847,9 @@ cssl.code("helpers", '''
|
|
|
847
847
|
''')
|
|
848
848
|
|
|
849
849
|
# Use in CSSL
|
|
850
|
-
cssl.
|
|
851
|
-
payload("
|
|
850
|
+
cssl.run('''
|
|
851
|
+
payload("<name>"); // use module you declared in cssl.script(<name>, ...)
|
|
852
852
|
@log("Application started");
|
|
853
853
|
printl(@version);
|
|
854
854
|
''')
|
|
855
855
|
```
|
|
856
|
-
|
|
857
|
-
# Changelog
|
|
858
|
-
|
|
859
|
-
## v3.4.20
|
|
860
|
-
- **Documentation:**
|
|
861
|
-
- Added complete CSSL language documentation
|
|
862
|
-
- Live object sharing with `$name` syntax
|
|
863
|
-
- Data types, control flow, functions, injection system
|
|
864
|
-
- String methods, modules, and inline payloads
|
|
865
|
-
|
|
866
|
-
## v3.4.19
|
|
867
|
-
- **Critical Bug Fixes:**
|
|
868
|
-
- Fixed generator raw string literal in parser.cpp (regex pattern with `)"` prematurely terminated)
|
|
869
|
-
- Fixed shared object property writes inside loops not persisting to Python
|
|
870
|
-
- Added member_access handling in flow operations for shared objects
|
|
871
|
-
|
|
872
|
-
## v3.4.18
|
|
873
|
-
- **Bug Fix:**
|
|
874
|
-
- Attempted fix for shared object loop writes (partially fixed)
|
|
875
|
-
|
|
876
|
-
## v3.4.17
|
|
877
|
-
- **New Feature: Live Object Sharing**
|
|
878
|
-
- `cssl.share(instance, name)` - Share Python objects with CSSL
|
|
879
|
-
- `$name` syntax for accessing shared objects
|
|
880
|
-
- Live bidirectional updates - changes in CSSL reflect in Python
|
|
881
|
-
- `delete("name")` builtin for removing shared objects
|
|
882
|
-
- Shared object metadata stored in `%APPDATA%/IncludeCPP/shared_objects/`
|
|
883
|
-
|
|
884
|
-
## v3.4.16
|
|
885
|
-
- **CSSL Bug Fixes:**
|
|
886
|
-
- Fixed `startsWith()` and `endsWith()` parser errors
|
|
887
|
-
|
|
888
|
-
## v3.4.15
|
|
889
|
-
- **CSSL Enhancements:**
|
|
890
|
-
- Added `elif` keyword support
|
|
891
|
-
- Added `range(start, end, step)` with step parameter
|
|
892
|
-
- Added `begin()` and `end()` methods to all collection types
|
|
893
|
-
- Added `cssl.code(name, code)` for inline payload registration
|
|
894
|
-
|
|
895
|
-
## v3.4.2
|
|
896
|
-
- **New Feature: `exec` Command**
|
|
897
|
-
- Interactive REPL for quick code testing without creating files
|
|
898
|
-
- `includecpp exec py` - Python REPL with IncludeCPP support
|
|
899
|
-
- `includecpp exec cpp` - C++ REPL with auto-compilation
|
|
900
|
-
- Auto-import modules: `includecpp exec py mymodule`
|
|
901
|
-
- Auto-import from plugins: `includecpp exec py plugins/math.cp`
|
|
902
|
-
- Import all modules: `includecpp exec py --all`
|
|
903
|
-
- Enter code line by line, press ENTER on empty line to execute
|
|
904
|
-
|
|
905
|
-
## v3.4.1
|
|
906
|
-
- **Bug Fixes:**
|
|
907
|
-
- fix command: Fixed false positives for unused variables (sum, memory_) using word-boundary matching
|
|
908
|
-
- CPPY: C++ reserved words (double, int, void, etc.) now properly escaped as Python identifiers
|
|
909
|
-
- CPPY: C++ STL functions (accumulate, find, sort, reverse) properly converted to Python equivalents
|
|
910
|
-
- CPPY: Member variables with trailing underscore (memory_) now get self. prefix
|
|
911
|
-
- CPPY: Private class members now detected for self. prefix conversion
|
|
912
|
-
- Plugin: Auto-detect header files from #include directives in source files
|
|
913
|
-
|
|
914
|
-
## v3.4.0
|
|
915
|
-
- **CodeMaker Major Update:**
|
|
916
|
-
- New Source node type with 8 connection ports for code generation
|
|
917
|
-
- Smart code generation: Source nodes generate Python/Plugin files with all connected nodes included
|
|
918
|
-
- Right-click on Source node: "Create Python" creates .py in project root
|
|
919
|
-
- Right-click on Source node: "Create Plugin" creates .cp, .h, .cpp in plugins/ and include/
|
|
920
|
-
- Code options hidden after file generation (prevents duplicates)
|
|
921
|
-
- Enhanced description display with background rect in node body
|
|
922
|
-
- Arrow key navigation to pan the canvas
|
|
923
|
-
- New toolbar buttons: Align H, Align V, Auto-Arrange
|
|
924
|
-
- Quick-add buttons: +Source, +Class, +Function
|
|
925
|
-
- Properties Panel on the right side for editing selected nodes
|
|
926
|
-
- Auto-arrange algorithm for grid layout
|
|
927
|
-
- Align horizontal/vertical for selected nodes
|
|
928
|
-
- **Bug Fixes:**
|
|
929
|
-
- Changelog encoding fixes for Windows console
|
|
930
|
-
- CPPY C++ keyword escaping (double, int, etc.)
|
|
931
|
-
- CPPY C++ to Python syntax conversion improvements
|
|
932
|
-
- CPPY self. prefix for member variables
|
|
933
|
-
- Plugin auto-header detection from #include
|
|
934
|
-
|
|
935
|
-
## v3.3.21
|
|
936
|
-
- **Encoding Fixes:**
|
|
937
|
-
- Replaced Unicode arrow characters with ASCII in changelog (Windows console compatibility)
|
|
938
|
-
|
|
939
|
-
## v3.3.20
|
|
940
|
-
- **Bug Fixes:**
|
|
941
|
-
- Fixed `QPoint.toPoint()` AttributeError in rubber band selection
|
|
942
|
-
- Added UTF-8 encoding to all file read/write operations for cross-platform compatibility
|
|
943
|
-
- Fixed bare `except:` clauses to proper `except Exception:` in settings_ui.py
|
|
944
|
-
|
|
945
|
-
## v3.3.19
|
|
946
|
-
- **PyQt6 Import Fix:**
|
|
947
|
-
- Fixed silent import failure that caused "PyQt6 not installed" error even when installed
|
|
948
|
-
- Moved `QUndoStack`, `QUndoCommand`, `QShortcut` from QtWidgets to QtGui (correct location in PyQt6)
|
|
949
|
-
|
|
950
|
-
## v3.3.18
|
|
951
|
-
- **CodeMaker Visual Editor (Experimental):**
|
|
952
|
-
- Complete rewrite of `project` command with professional-grade UI
|
|
953
|
-
- 24 node types across 5 categories (Code Structures, Functions, Data, Organization, Flow)
|
|
954
|
-
- Undo/redo system with full command history
|
|
955
|
-
- Multi-selection with rubber band and Ctrl+Click
|
|
956
|
-
- Copy/paste/duplicate with Ctrl+C/V/D shortcuts
|
|
957
|
-
- Node grouping with Ctrl+G
|
|
958
|
-
- Code generation for C++ (header/source) and Python
|
|
959
|
-
- Search and filter nodes by name and type
|
|
960
|
-
- Export to PNG/SVG with transparency support
|
|
961
|
-
- Categorized right-click context menus
|
|
962
|
-
- Toolbar with common actions
|
|
963
|
-
- Cross-platform font detection (Windows/macOS/Linux)
|
|
964
|
-
- DPI-aware scaling for high-resolution displays
|
|
965
|
-
- **Experimental Feature Gating:**
|
|
966
|
-
- `project` command now requires "Enable Experimental Features" in settings
|
|
967
|
-
- Consistent gating with `ai` and `cppy` commands
|
|
968
|
-
|
|
969
|
-
## v3.3.16-3.3.17
|
|
970
|
-
- **QPen Bug Fixes:**
|
|
971
|
-
- Fixed 3 instances of `setPen(Qt.PenStyle.NoPen)` to `setPen(QPen(Qt.PenStyle.NoPen))`
|
|
972
|
-
- Proper QPen construction for PyQt6 compatibility
|
|
973
|
-
|
|
974
|
-
## v3.3.15
|
|
975
|
-
- **CPPY Converter Major Fixes:**
|
|
976
|
-
- Functions returning container now get `std::vector<T>` return type (e.g., shuffle_list)
|
|
977
|
-
- `max(items)` / `min(items)` now correctly uses `std::max_element` / `std::min_element`
|
|
978
|
-
- Template element parameters (`value`, `item`) now use `const T&` instead of `double`
|
|
979
|
-
- Explicit template instantiations now include correct return types and all parameters
|
|
980
|
-
- Python docstrings now become C++ comments instead of dangling string literals
|
|
981
|
-
- **Unicode Fallback System:**
|
|
982
|
-
- AI progress indicators use ASCII fallbacks on Windows terminals
|
|
983
|
-
- Fixed encoding errors in changelog display
|
|
984
|
-
|
|
985
|
-
## v3.3.14
|
|
986
|
-
- **Experimental Features System:**
|
|
987
|
-
- AI and CPPY commands now hidden by default
|
|
988
|
-
- Enable via Settings UI: "Enable Experimental Features" checkbox
|
|
989
|
-
- Warning about potential bugs documented in README
|
|
990
|
-
- **Settings UI Improvements:**
|
|
991
|
-
- Added scrollable content area to prevent layout squashing
|
|
992
|
-
- New "Experimental" section with orange header
|
|
993
|
-
- Better spacing and styling for all elements
|
|
994
|
-
- Preserved existing config values on save
|
|
995
|
-
|
|
996
|
-
## v3.3.13
|
|
997
|
-
- **Template Support for Generic Functions:**
|
|
998
|
-
- Generic container parameters now generate proper C++ templates
|
|
999
|
-
- `template<typename T> T getChoice(const std::vector<T>& choices)` instead of invalid `std::vector<auto>`
|
|
1000
|
-
- Automatic explicit template instantiations for int, double, std::string
|
|
1001
|
-
- **AI Conversion - No pybind11:**
|
|
1002
|
-
- AI no longer generates pybind11 code - IncludeCPP handles bindings automatically
|
|
1003
|
-
- Clean C++ output in `namespace includecpp`
|
|
1004
|
-
- User runs `includecpp plugin` separately to generate bindings
|
|
1005
|
-
- **AI Context - Dynamic README:**
|
|
1006
|
-
- AI now loads README.md dynamically for accurate IncludeCPP documentation
|
|
1007
|
-
- Better understanding of IncludeCPP workflow and patterns
|
|
1008
|
-
|
|
1009
|
-
## v3.3.12
|
|
1010
|
-
- **Smart Type Inference:**
|
|
1011
|
-
- Parameter types now inferred from common naming patterns (start/end -> int, name/path -> string, etc.)
|
|
1012
|
-
- Variable type tracking throughout conversion for accurate string detection
|
|
1013
|
-
- Loop variable types inferred from iterables (enumerate, for loops)
|
|
1014
|
-
- **String Conversion Fix:**
|
|
1015
|
-
- No more `std::to_string()` on already-string variables in f-strings
|
|
1016
|
-
- `_is_string_expr()` method for comprehensive string type detection
|
|
1017
|
-
- String variables detected by name, type tracking, and method calls
|
|
1018
|
-
- **AI Conversion Improvements:**
|
|
1019
|
-
- Explicit file extension enforcement (.cpp NOT .cp, .h NOT .hpp)
|
|
1020
|
-
- Better --no-h flag handling with clear AI instructions
|
|
1021
|
-
- AI can request clarification on unconvertible modules (tkinter, pygame, etc.)
|
|
1022
|
-
- User prompted for input when AI needs guidance
|
|
1023
|
-
|
|
1024
|
-
## v3.3.11
|
|
1025
|
-
- **CPPY Converter Improvements:**
|
|
1026
|
-
- Added `_safe_arg()` and `_safe_get()` for robust bounds checking on all args
|
|
1027
|
-
- Added comprehensive try-except handling in `_convert_expr()` with warnings
|
|
1028
|
-
- Improved type inference with empty container handling and exception safety
|
|
1029
|
-
- Complete string escaping: `\0`, `\f`, `\b`, `\a`, `\v` now properly escaped
|
|
1030
|
-
- **New Python Constructs:**
|
|
1031
|
-
- Dict comprehensions: `{k: v for k, v in items}` now converts to C++
|
|
1032
|
-
- Set comprehensions: `{x for x in items}` now converts to C++
|
|
1033
|
-
- Generator expressions: `(x for x in items)` now converts to vector
|
|
1034
|
-
- Tuple unpacking: `a, b = func()` now uses C++17 structured bindings
|
|
1035
|
-
- **AI Conversion Flags:**
|
|
1036
|
-
- New `--think` flag for less context mode
|
|
1037
|
-
- New `--think3` flag for maximum context mode
|
|
1038
|
-
- New `--websearch` flag for web search in AI conversion
|
|
1039
|
-
- Default: `--think2` mode (unchanged behavior)
|
|
1040
|
-
|
|
1041
|
-
## v3.3.10
|
|
1042
|
-
- **CPPY Converter seeded RNG fixes:**
|
|
1043
|
-
- Fixed `rng = random.Random(seed)` then `rng.randint()` - now properly tracks seeded RNG variables
|
|
1044
|
-
- Fixed `random.choices(...)[0]` subscript - returns single element directly without `[0]`
|
|
1045
|
-
- Seeded RNG methods (randint, uniform, choice, random) now use the tracked variable with proper C++ distributions
|
|
1046
|
-
|
|
1047
|
-
## v3.3.9
|
|
1048
|
-
- **CPPY Converter fixes:**
|
|
1049
|
-
- Added f-string (JoinedStr) support - f"text {expr}" now converts to string concatenation
|
|
1050
|
-
- Fixed `random.Random(seed).method()` chained calls - now generates proper inline lambda with seeded RNG
|
|
1051
|
-
- Fixed `random.choices(items, weights=weights)` keyword argument handling
|
|
1052
|
-
- Improved string type detection in f-string expressions
|
|
1053
|
-
|
|
1054
|
-
## v3.3.8
|
|
1055
|
-
- **Major rulebased converter improvements:**
|
|
1056
|
-
- Added Python `random` module support (randint, uniform, choice, sample, shuffle, gauss, etc.)
|
|
1057
|
-
- Added `os` module support (getcwd, path.join, path.exists, listdir, mkdir, etc.)
|
|
1058
|
-
- Added `time` module support (sleep, time, perf_counter, monotonic)
|
|
1059
|
-
- Added `sys` module support (exit, platform)
|
|
1060
|
-
- Added `math` module support (sqrt, pow, sin, cos, log, etc.)
|
|
1061
|
-
- Added `re` (regex) module support (match, search, sub, findall)
|
|
1062
|
-
- Added `threading` module support (Thread, Lock, Semaphore, etc.)
|
|
1063
|
-
- Added `collections` module support (deque, defaultdict, Counter)
|
|
1064
|
-
- Added `pathlib.Path` support
|
|
1065
|
-
- **Unconvertible code detection:**
|
|
1066
|
-
- Automatically detects GUI frameworks (tkinter, PyQt, PySide, pygame) and other unconvertible modules
|
|
1067
|
-
- Shows red warning with line numbers when unconvertible code is found
|
|
1068
|
-
- New `--force` flag to convert anyway (with `/* UNCONVERTIBLE */` comments)
|
|
1069
|
-
- Supports 30+ modules in detection (numpy, pandas, flask, django, etc.)
|
|
1070
|
-
- Fixed duplicate file output in `cppy convert --ai`
|
|
1071
|
-
- Plugin command now skips inline and underscore-prefixed functions
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
---
|
|
1075
|
-
|
|
1076
|
-
MIT License | v3.4.20 | [GitHub](https://github.com/liliassg/IncludeCPP)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
includecpp/__init__.py,sha256=
|
|
1
|
+
includecpp/__init__.py,sha256=tg-Rg63h9qYhHvpAknQ6sig3-2vJE121Nt0YcM6jhCo,1673
|
|
2
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
|
|
@@ -25,7 +25,7 @@ includecpp/core/cssl/cssl_builtins.py,sha256=r-FX4WQeKxerkepqodIiwhtL_kxxa4PJym_
|
|
|
25
25
|
includecpp/core/cssl/cssl_builtins.pyi,sha256=3ai2V4LyhzPBhAKjRRf0rLVu_bg9ECmTfTkdFKM64iA,127430
|
|
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=WxfqNhsryt5IR7KdDgbHrrYlXS-xBXTsr3YAiGBJZIc,117711
|
|
29
29
|
includecpp/core/cssl/cssl_runtime.py,sha256=iZgNcKDoTeV50-IsXcsrpuTyDPxEHWyQz5uR3s5UVHg,154613
|
|
30
30
|
includecpp/core/cssl/cssl_syntax.py,sha256=bgo3NFehoPTQa5dqwNd_CstkVGVCNYAXbGYUcu5BEN0,16982
|
|
31
31
|
includecpp/core/cssl/cssl_types.py,sha256=gVjtfxk0Uzfj-H7_LD79oqspFMYDf79ZrRrlZk8eAEs,50647
|
|
@@ -37,16 +37,16 @@ includecpp/generator/type_resolver.h,sha256=ZsaxQqcCcKJJApYn7KOp2dLlQ1VFVG_oZDja
|
|
|
37
37
|
includecpp/templates/cpp.proj.template,sha256=Iy-L8I4Cl3tIgBMx1Qp5h6gURvkqOAqyodVHuDJ0Luw,359
|
|
38
38
|
includecpp/vscode/__init__.py,sha256=yLKw-_7MTX1Rx3jLk5JjharJQfFXbwtZVE7YqHpM7yg,39
|
|
39
39
|
includecpp/vscode/cssl/__init__.py,sha256=rQJAx5X05v-mAwqX1Qb-rbZO219iR73MziFNRUCNUIo,31
|
|
40
|
-
includecpp/vscode/cssl/extension.js,sha256=
|
|
40
|
+
includecpp/vscode/cssl/extension.js,sha256=FZaKfOpzo2jXtubVCZmnhDZd4eUVHltm5VW_fgNnSkE,4327
|
|
41
41
|
includecpp/vscode/cssl/language-configuration.json,sha256=61Q00cKI9may5L8YpxMmvfo6PAc-abdJqApfR85DWuw,904
|
|
42
42
|
includecpp/vscode/cssl/package.json,sha256=Zu2QoTE0OVCCDUHp1hc7kN2NBbFs60bX-LLGMpXz25M,4853
|
|
43
43
|
includecpp/vscode/cssl/images/cssl.png,sha256=BxAGsnfS0ZzzCvqV6Zb1OAJAZpDUoXlR86MsvUGlSZw,510
|
|
44
44
|
includecpp/vscode/cssl/images/cssl_pl.png,sha256=z4WMk7g6YCTbUUbSFk343BO6yi_OmNEVYkRenWGydwM,799
|
|
45
|
-
includecpp/vscode/cssl/snippets/cssl.snippets.json,sha256=
|
|
45
|
+
includecpp/vscode/cssl/snippets/cssl.snippets.json,sha256=4zHOPWNX2_Pk2j2ms84Cx4wv8H089oio371F3vXohXE,36005
|
|
46
46
|
includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json,sha256=XKRLBOHlCqDDnGPvmNHDQPsIMR1UD9PBaJIlgZOiPqM,21173
|
|
47
|
-
includecpp-3.7.
|
|
48
|
-
includecpp-3.7.
|
|
49
|
-
includecpp-3.7.
|
|
50
|
-
includecpp-3.7.
|
|
51
|
-
includecpp-3.7.
|
|
52
|
-
includecpp-3.7.
|
|
47
|
+
includecpp-3.7.26.dist-info/licenses/LICENSE,sha256=fWCsGGsiWZir0UzDd20Hh-3wtRyk1zqUntvtVuAWhvc,1093
|
|
48
|
+
includecpp-3.7.26.dist-info/METADATA,sha256=DcEjed5M_UJAX_YqHNtwFk6MtdMDHHpi91Mqcb_ents,21277
|
|
49
|
+
includecpp-3.7.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
50
|
+
includecpp-3.7.26.dist-info/entry_points.txt,sha256=6A5Mif9gi0139Bf03W5plAb3wnAgbNaEVe1HJoGE-2o,59
|
|
51
|
+
includecpp-3.7.26.dist-info/top_level.txt,sha256=RFUaR1KG-M6mCYwP6w4ydP5Cgc8yNbP78jxGAvyjMa8,11
|
|
52
|
+
includecpp-3.7.26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|