[FEATURE] Add --show-python flag: print transpiled Python without executing
まだ誰も着手していません。
評価
調査の方向性
main() から始めて、CLI が .dmai ファイルをどのように読み込み、translate_imports と transpile_maithili_code をどう呼び出しているかを確認し、その後 EXIT_OK とファイル未検出時の終了コードがどこで設定されているかを探してください。実行する代わりに、トランスパイル済みのソースを stdout に出力するフラグを追加し、issue が提案しているとおりリンティングを先に実行するかどうかを決めてください。tests/test_cli.py の新しいテストが通れば完了です。既知の例に対して出力に def または print が含まれ、終了コードが 0 であり、ファイルが存在しない場合も引き続き 3 で終了することを確認します。
索引モデルが issue の本文から書いたものです。
説明
Add a --show-python (or --transpile) flag that prints the transpiled Python source for a .dmai file instead of executing it.
Why: invaluable for learners ("what does my Maithili code become?"), for debugging transpiler issues (most bug reports in this tracker were found this way), and for using the transpiler output in other tooling.
Sketch: in main(): read file → translate_imports → transpile_maithili_code → print result to stdout, exit EXIT_OK. Decide and document whether linting runs first (suggest: skip lint, this is a debugging view).
Tests: tests/test_cli.py — output contains def/print for a known example; exit code 0; file-not-found still exit 3.
Good first issue: the pipeline already exists — this exposes it.
- 主要言語
- Python
- スター
- 1
- フォーク
- 4
- 平均マージ
- 12日 21時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
alphacrack/python-maithili-dsl のほかの issue
-
help wanted infra P2 testing
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
-
documentation enhancement good first issue help wanted P3
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
documentation good first issue P3
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
area:linter enhancement good first issue P3 translation
難易度 2/5 半日 初心者へのやさしさ 66/100
-
area:cli enhancement good first issue P3
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
alphacrack/python-maithili-dsl の issue をすべて見る
似ている issue
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
JheysonJhordyHuarauyaRiquelme/sprocguard#18 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
dlq/synthpopcan#59 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mdn/translated-content#40220 ·
メンテナーはふだん 4 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
ETSInitiative/PETSIRD#243 ·
メンテナーはふだん 1 日以内に返信
-
deferred p2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
cuadrao-ai/argus#2160 ·
メンテナーはふだん 1 日以内に返信