Skip to main content

tranp (TRANspiler on Python)

test codecov MIT License

概要

  • 言語非依存(※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

ライセンス

MIT

  • tranpを用いて生成したトランスパイル後のソースコードに関してはライセンスに含まれません

Metadata

Release files for tranp 0.9.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tranp 0.9.3
File Size Uploaded
tranp-0.9.3.tar.gz 194.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tranp 0.9.3
File Interpreter ABI Platform
tranp-0.9.3-py3-none-any.whl Python 3 none any Details

Total release size: 496.0 kB

Release files / tranp-0.9.3.tar.gz

Download URL tranp-0.9.3.tar.gz
Size 194.4 kB
Tags Source
SHA-256 checksum
How to use checksums
94b2c313d3ee958bc4450634d6e2bc149c594457e3dbf9268834a26169d3645d
BLAKE2b-256 checksum
How to use checksums
26d958bb739e2f72de515d4038307893f2eec380db0dd685e3862ba49917a8f1
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.3-py3-none-any.whl

Download URL tranp-0.9.3-py3-none-any.whl
Size 301.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4a65984ca1c98667daf2a7cbb359af9f14a75889d97fbd945021026d17406cc
BLAKE2b-256 checksum
How to use checksums
e1c0a99a375c879d044bf877df1e286ec5541889ad6ccea4aeb4a3f433d51175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release history Release notifications | RSS feed

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

This release

0.9.3 This release

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page