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++)
$ bash bin/transpile.sh
ソースコード解析ツール
$ bash bin/analyze.sh
グラマー解析ツール
$ bash bin/gram.sh
AST解析ツール
$ bash bin/ast.sh
テスト
$ bash bin/test.sh
ライセンス
- tranpを用いて生成したトランスパイル後のソースコードに関してはライセンスに含まれません
Metadata
Release files for tranp 0.9.5
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.5.tar.gz | 194.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tranp-0.9.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 495.9 kB
Release files / tranp-0.9.5.tar.gz
| Download URL | tranp-0.9.5.tar.gz |
|---|---|
| Size | 194.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52c0a2f0a5177477a0286a7b9c3b1a7f42bbb5d700b199031e53ffd5c9aacdc1
|
|
BLAKE2b-256 checksum How to use checksums |
83aa5a0bf710306a15283fb016652a4e01f83ac8d11bf811edd66e9f43b73bad
|
| 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.5-py3-none-any.whl
| Download URL | tranp-0.9.5-py3-none-any.whl |
|---|---|
| Size | 301.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be53b80926d89c9066330e51b079a82766ac0000b5cf43f3d7882ee1bb8e850d
|
|
BLAKE2b-256 checksum How to use checksums |
f68514528d56d30215cbfbaca997fa7203915b5a52d1770f66c1b2df77b8af37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|