IncludeCPP 4.5.2__py3-none-any.whl → 4.6.0__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.
Binary file
@@ -455,8 +455,11 @@ class CsslLang:
455
455
  return run_cssl(source)
456
456
  except Exception as cpp_error:
457
457
  # Fall back to Python for unsupported features
458
+ # v4.5.2: Also fall back on "unexpected token" - C++ parser doesn't support all syntax
458
459
  error_msg = str(cpp_error).lower()
459
- if 'unsupported' not in error_msg and 'not implemented' not in error_msg:
460
+ fallback_triggers = ['unsupported', 'not implemented', 'unexpected token']
461
+ should_fallback = any(trigger in error_msg for trigger in fallback_triggers)
462
+ if not should_fallback:
460
463
  # Real error - re-raise it
461
464
  raise RuntimeError(str(cpp_error)) from cpp_error
462
465
  # Otherwise fall through to Python
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: IncludeCPP
3
- Version: 4.5.2
3
+ Version: 4.6.0
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
@@ -14,7 +14,7 @@ includecpp/core/cpp_api.py,sha256=8y_B1L18rhSBZln654xPPzqO2PdvAlLpJrfEjzl7Wnc,14
14
14
  includecpp/core/cpp_api.pyi,sha256=IEiaKqaPItnn6rjL7aK32D3o9FYmRYCgCZbqiQNUwdc,3496
15
15
  includecpp/core/cpp_api_extensions.pyi,sha256=eqqi7A1pUGg9GTDpWLWViNFNdQZ0AG8rV0oSysynJvs,10432
16
16
  includecpp/core/cppy_converter.py,sha256=b7yqu-aoa0wShNY0GvQT67TnNhYya4GyYmG7oDdqDV4,156686
17
- includecpp/core/cssl_bridge.py,sha256=o8huFAOg9_OQt0opZeT2nX1CtuH-iSNnAgvFG-KWil4,51755
17
+ includecpp/core/cssl_bridge.py,sha256=-FsC_TppbNlSzc-lmmV4bpya1vdofprGy_KqGOY6S5c,51995
18
18
  includecpp/core/cssl_bridge.pyi,sha256=nreh2gtK94I6VFrzTWcYVUHN97wcYQF0dY_-HySi7yQ,28787
19
19
  includecpp/core/error_catalog.py,sha256=VS3N-P0yEbiHimsDPtcaYfrUb7mXQ-7pqw18PtSngaU,33869
20
20
  includecpp/core/error_formatter.py,sha256=7-MzRIT8cM4uODxy0IZ9pu7pqR4Pq2I8Si0QQZHjmVc,39239
@@ -38,7 +38,7 @@ includecpp/core/cssl/cssl_syntax.py,sha256=RLvpDymbe66eubD51dcICtDcKyJQ2qQ5IxPNp
38
38
  includecpp/core/cssl/cssl_types.py,sha256=ZqUfDRNH1V_c0qsDbfAXz8nfkTSZ9DIlr5VTGd-udak,73090
39
39
  includecpp/core/cssl/cpp/cssl_core.cp,sha256=0ycXtd7IEIPCq11-uS-WZpD-6ShVgIqD_tMGBVnaut8,2944
40
40
  includecpp/core/cssl/cpp/cssl_lexer.hpp,sha256=ItpblJWnu2BnaAUNsmGwJEjOJPjzTCJlygvpel9MI3g,7563
41
- includecpp/core/cssl/cpp/build/api.pyd,sha256=Cf129k9jtZj2Df7eu8zS513nVlYDPClSiCQTFGQYdFI,4267449
41
+ includecpp/core/cssl/cpp/build/api.pyd,sha256=nK1D9KSycWATC3jPDqwgydwF_mqRWQ63cnlpn1_x4j8,4315940
42
42
  includecpp/core/cssl/cpp/build/cssl_core.pyi,sha256=pAxrzrkH9r81mbhdIx9HoEq1vbgs2B69ADuocTM303M,7228
43
43
  includecpp/core/cssl/cpp/build/libgcc_s_seh-1.dll,sha256=LeQ1VkhEHbAjCpq6GhSfyCmwlPg8FMN-o_d1NW0z2LE,150196
44
44
  includecpp/core/cssl/cpp/build/libstdc++-6.dll,sha256=Qo0iqKTSXjntrTaFESJwGzRgwrz2KIhM3SZkUw0t1jQ,2461848
@@ -58,9 +58,9 @@ includecpp/vscode/cssl/images/cssl.png,sha256=BxAGsnfS0ZzzCvqV6Zb1OAJAZpDUoXlR86
58
58
  includecpp/vscode/cssl/images/cssl_pl.png,sha256=z4WMk7g6YCTbUUbSFk343BO6yi_OmNEVYkRenWGydwM,799
59
59
  includecpp/vscode/cssl/snippets/cssl.snippets.json,sha256=uV3nHJyQ5f7Pr3FzfbQT2VZOEY3AlGs4wrmqe884jm4,37372
60
60
  includecpp/vscode/cssl/syntaxes/cssl.tmLanguage.json,sha256=DOruG97tnY-OuQqiGciXwUE9kofb1THb03kKMhUQ4-E,49505
61
- includecpp-4.5.2.dist-info/licenses/LICENSE,sha256=fWCsGGsiWZir0UzDd20Hh-3wtRyk1zqUntvtVuAWhvc,1093
62
- includecpp-4.5.2.dist-info/METADATA,sha256=j0ZykypVIRVHS0ygW41i-t1tVhgYL7Z2l6lY2ZuDVLw,5887
63
- includecpp-4.5.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
- includecpp-4.5.2.dist-info/entry_points.txt,sha256=6A5Mif9gi0139Bf03W5plAb3wnAgbNaEVe1HJoGE-2o,59
65
- includecpp-4.5.2.dist-info/top_level.txt,sha256=RFUaR1KG-M6mCYwP6w4ydP5Cgc8yNbP78jxGAvyjMa8,11
66
- includecpp-4.5.2.dist-info/RECORD,,
61
+ includecpp-4.6.0.dist-info/licenses/LICENSE,sha256=fWCsGGsiWZir0UzDd20Hh-3wtRyk1zqUntvtVuAWhvc,1093
62
+ includecpp-4.6.0.dist-info/METADATA,sha256=anyL7_yXEwoh_NJAiPsMZbj8x8-nssSIeRm6d9l7G1U,5887
63
+ includecpp-4.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
64
+ includecpp-4.6.0.dist-info/entry_points.txt,sha256=6A5Mif9gi0139Bf03W5plAb3wnAgbNaEVe1HJoGE-2o,59
65
+ includecpp-4.6.0.dist-info/top_level.txt,sha256=RFUaR1KG-M6mCYwP6w4ydP5Cgc8yNbP78jxGAvyjMa8,11
66
+ includecpp-4.6.0.dist-info/RECORD,,