https://github.com/klauer/firstpasspiler
[placeholder] First-pass transpiler - parse C++ with clang -> generate templated, non-working Python code
https://github.com/klauer/firstpasspiler
Last synced: 3 months ago
JSON representation
[placeholder] First-pass transpiler - parse C++ with clang -> generate templated, non-working Python code
- Host: GitHub
- URL: https://github.com/klauer/firstpasspiler
- Owner: klauer
- License: bsd-3-clause
- Created: 2019-03-18T20:04:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-27T16:36:37.000Z (about 6 years ago)
- Last Synced: 2025-01-17T16:52:07.811Z (5 months ago)
- Language: Python
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# firstpasspiler
First-pass transpiler - parse C++ with clang -> generate templated Python codeThe generated code will not work as-is. It likely won't even be valid
Python. That's where the "first pass" comes from - you will have to touch up
the generated code.Note
----
This is a fun little utility I wrote to help with qtpynodeeditor, in which many
base classes were already wrapped in Python with pyqt5.It's not likely that I'll continue working on this further.
If you want a more full-featured transpiler, check out
[seasnake](https://github.com/pybee/seasnake). Also, reach out to
llvm as this outstanding issue/PR from years ago affects similar projects from
doing what they're supposed to: https://reviews.llvm.org/D10833?id=39176Limitations
-----------* Class-centric
* `__init__`, `__del__` will be nonsensical
* `self.` gets prepended at the wrong time
* Not a package
* No tests
* Your output will not work as-isRequirements
------------* clang
* inflection