tranp (TRANspiler on Python)
概要
- 言語非依存(※1)のトランスパイルフレームワーク
- 入力言語のAST(※2)を元に、出力言語のソースコードをレンダリング
- トランスパイルのリアルタイム変換や変換時のシンボル解析、グラマー・ASTの解析ツールを付属
- ※1: 現状はPythonからC++への変換のみ実装
- ※2: ASTの生成は外部ツールを利用(自由に変更可能)
必須要件
- Python 3.13
- Lark 1.3.1
- Jinja2 3.1.4
- PyYAML 6.0.2
インストール
$ pip install tranp
使用方法
トランスパイラー (Python to C++)
$ tranp -c path/to/config.yml
ソースコード解析ツール
$ tranp analyze
グラマー解析ツール
$ tranp gram
AST解析ツール
$ tranp ast
ライセンス
- tranpを用いて生成したトランスパイル後のソースコードに関してはライセンスに含まれません
Metadata
Release files for tranp 0.9.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tranp-0.9.7.tar.gz | 194.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tranp-0.9.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 496.8 kB
Release files / tranp-0.9.7.tar.gz
| Download URL | tranp-0.9.7.tar.gz |
|---|---|
| Size | 194.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
274168d606da63a98aedffe37f74287be167912dedbb661f075c7700a25b5b54
|
|
BLAKE2b-256 checksum How to use checksums |
cfa8cbfb7cfe57db97216ea385548dec3f5c6b8f1661885be6e9b2f7ddea2ebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|
Release files / tranp-0.9.7-py3-none-any.whl
| Download URL | tranp-0.9.7-py3-none-any.whl |
|---|---|
| Size | 302.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86375a101fc149439830d32655276e1c3c1c7164d3be5a3ab8f2fb02e49d9d66
|
|
BLAKE2b-256 checksum How to use checksums |
17a80abc1de0338a9074c2f3b20f890e76a4524710d98a9985a12c0ae4ef9db2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|