IncludeCPP 3.7.27__tar.gz → 3.7.29__tar.gz
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-3.7.27 → includecpp-3.7.29}/IncludeCPP.egg-info/PKG-INFO +1 -1
- {includecpp-3.7.27 → includecpp-3.7.29}/PKG-INFO +1 -1
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/__init__.py +1 -1
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/cli/commands.py +12 -5
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/cssl_builtins.py +2 -1
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/cssl_runtime.py +16 -1
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/cssl/package.json +1 -1
- {includecpp-3.7.27 → includecpp-3.7.29}/pyproject.toml +1 -1
- {includecpp-3.7.27 → includecpp-3.7.29}/IncludeCPP.egg-info/SOURCES.txt +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/IncludeCPP.egg-info/dependency_links.txt +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/IncludeCPP.egg-info/entry_points.txt +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/IncludeCPP.egg-info/requires.txt +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/IncludeCPP.egg-info/top_level.txt +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/LICENSE +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/MANIFEST.in +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/README.md +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/__init__.pyi +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/__main__.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/cli/__init__.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/cli/config_parser.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/__init__.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/ai_integration.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/build_manager.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cpp_api.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cpp_api.pyi +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cppy_converter.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/CSSL_DOCUMENTATION.md +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/__init__.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/cssl_builtins.pyi +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/cssl_events.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/cssl_modules.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/cssl_parser.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/cssl_syntax.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl/cssl_types.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl_bridge.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/cssl_bridge.pyi +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/error_catalog.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/error_formatter.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/exceptions.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/path_discovery.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/project_ui.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/core/settings_ui.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/generator/__init__.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/generator/parser.cpp +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/generator/parser.h +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/generator/type_resolver.cpp +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/generator/type_resolver.h +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/py.typed +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/templates/cpp.proj.template +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/__init__.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/cssl/__init__.py +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/cssl/extension.js +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/cssl/images/cssl.png +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/cssl/images/cssl_pl.png +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/cssl/language-configuration.json +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/cssl/snippets/cssl.snippets.json +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/requirements.txt +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/setup.cfg +0 -0
- {includecpp-3.7.27 → includecpp-3.7.29}/setup.py +0 -0
|
@@ -7923,16 +7923,18 @@ cli.add_command(cssl)
|
|
|
7923
7923
|
|
|
7924
7924
|
@cli.command()
|
|
7925
7925
|
@click.option('--force', '-f', is_flag=True, help='Force overwrite existing files')
|
|
7926
|
+
@click.option('--reinstall', '-r', is_flag=True, help='Reinstall extension (removes all versions first)')
|
|
7926
7927
|
@click.option('--stubs-only', is_flag=True, help='Only update stubs, skip extension files')
|
|
7927
|
-
def vscode(force, stubs_only):
|
|
7928
|
+
def vscode(force, reinstall, stubs_only):
|
|
7928
7929
|
"""Initialize or update VSCode configuration for IncludeCPP/CSSL.
|
|
7929
7930
|
|
|
7930
7931
|
Installs CSSL extension globally and sets up project stubs.
|
|
7931
7932
|
|
|
7932
7933
|
\b
|
|
7933
7934
|
Usage:
|
|
7934
|
-
includecpp vscode
|
|
7935
|
-
includecpp vscode --force
|
|
7935
|
+
includecpp vscode # Install/update extension + stubs
|
|
7936
|
+
includecpp vscode --force # Force reinstall extension
|
|
7937
|
+
includecpp vscode --reinstall # Remove ALL versions & reinstall fresh
|
|
7936
7938
|
includecpp vscode --stubs-only # Only update stubs
|
|
7937
7939
|
|
|
7938
7940
|
\b
|
|
@@ -7999,13 +8001,18 @@ def vscode(force, stubs_only):
|
|
|
7999
8001
|
target_dir = global_ext_dir / f'includecpp.cssl-{current_version}'
|
|
8000
8002
|
|
|
8001
8003
|
# Check if already installed with same or older version
|
|
8002
|
-
needs_install = force
|
|
8004
|
+
needs_install = force or reinstall
|
|
8003
8005
|
existing_version = None
|
|
8004
8006
|
|
|
8005
8007
|
# Find existing installations
|
|
8006
8008
|
for existing in global_ext_dir.glob('includecpp.cssl-*'):
|
|
8007
8009
|
existing_version = existing.name.split('-')[-1]
|
|
8008
|
-
if
|
|
8010
|
+
if reinstall:
|
|
8011
|
+
# --reinstall: Remove ALL versions
|
|
8012
|
+
click.echo(f" Removing version: {existing_version}")
|
|
8013
|
+
shutil.rmtree(existing)
|
|
8014
|
+
needs_install = True
|
|
8015
|
+
elif existing_version != current_version:
|
|
8009
8016
|
# Remove old version
|
|
8010
8017
|
click.echo(f" Removing old version: {existing_version}")
|
|
8011
8018
|
shutil.rmtree(existing)
|
|
@@ -2612,7 +2612,8 @@ class PythonizedMethod:
|
|
|
2612
2612
|
raise RuntimeError(f"Cannot call method '{self._method_name}' - no runtime available")
|
|
2613
2613
|
|
|
2614
2614
|
# Execute the method through the runtime
|
|
2615
|
-
|
|
2615
|
+
# Pass the method AST node, not the method name
|
|
2616
|
+
result = self._runtime._call_method(self._instance, self._method_ast, list(args), kwargs)
|
|
2616
2617
|
|
|
2617
2618
|
# Pythonize the result if it's a CSSL instance
|
|
2618
2619
|
from .cssl_types import CSSLInstance
|
|
@@ -2186,7 +2186,12 @@ class CSSLRuntime:
|
|
|
2186
2186
|
|
|
2187
2187
|
if isinstance(target, ASTNode):
|
|
2188
2188
|
if target.type == 'identifier':
|
|
2189
|
-
|
|
2189
|
+
# Check if we're in a class method and this is a class member
|
|
2190
|
+
# If so, set the member instead of creating a local variable
|
|
2191
|
+
if self._current_instance is not None and self._current_instance.has_member(target.value):
|
|
2192
|
+
self._current_instance.set_member(target.value, value)
|
|
2193
|
+
else:
|
|
2194
|
+
self.scope.set(target.value, value)
|
|
2190
2195
|
elif target.type == 'global_ref':
|
|
2191
2196
|
# r@Name = value - store in promoted globals
|
|
2192
2197
|
self._promoted_globals[target.value] = value
|
|
@@ -2323,6 +2328,16 @@ class CSSLRuntime:
|
|
|
2323
2328
|
if node.type == 'identifier':
|
|
2324
2329
|
name = node.value
|
|
2325
2330
|
value = self.scope.get(name)
|
|
2331
|
+
# Check if it's a class member in current instance context
|
|
2332
|
+
# This allows accessing members without 'this->' inside methods
|
|
2333
|
+
if value is None and self._current_instance is not None:
|
|
2334
|
+
if self._current_instance.has_member(name):
|
|
2335
|
+
value = self._current_instance.get_member(name)
|
|
2336
|
+
elif self._current_instance.has_method(name):
|
|
2337
|
+
# Return bound method
|
|
2338
|
+
method_node = self._current_instance.get_method(name)
|
|
2339
|
+
instance = self._current_instance
|
|
2340
|
+
value = lambda *args, **kwargs: self._call_method(instance, method_node, list(args), kwargs)
|
|
2326
2341
|
# Fallback to global scope
|
|
2327
2342
|
if value is None:
|
|
2328
2343
|
value = self.global_scope.get(name)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "cssl",
|
|
3
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.3.
|
|
5
|
+
"version": "1.3.1",
|
|
6
6
|
"publisher": "IncludeCPP",
|
|
7
7
|
"icon": "images/cssl.png",
|
|
8
8
|
"engines": {
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "IncludeCPP"
|
|
7
|
-
version = "3.7.
|
|
7
|
+
version = "3.7.29"
|
|
8
8
|
description = "Professional C++ Python bindings with type-generic templates, pystubs and native threading"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{includecpp-3.7.27 → includecpp-3.7.29}/includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|