RustPython / RustPython/Parser
Hundread of files that are properly parsed(or not) in opposite to Python 3.11.2
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 117
- フォーク
- 38
- 平均マージ
- 4日 7時間
- マージ済み PR(30日)
- 1
説明
d23611db65dca2a71eb58fdcdce9d637f8fef8c2
When parsing with this repo multiple files, I found that sometimes python cannot parse file but this library can and vice versa.
Command to check if python can parse file
python -m py_compile PY_FILE_TEST_427160.py
Code to check if parser can parse file
let rust_valid = parse(content.as_str(), Mode::Module,"").is_ok();
Only ~3% files from pack, can be parsed by python, but not rustpython parser
Pack 644 files - OUTPUT_FILES.zip
Example files and errors
return imprt
SyntaxError: 'return' outside function
\
import _pl
Sorry: IndentationError: unexpected indent (79285088PY_FILE_TEST_5137609254.py, line 2)
# encoding: ut
SyntaxError: unknown encoding: ut
__p|ersion__ = '2.9.0'
SyntaxError: cannot assign to expression here. Maybe you meant '==' instead of '='?
from __future__ import un
SyntaxError: future feature un is not defined
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
OUTPUT_FILES.zip から始め、一覧にある例について python -m py_compile PY_FILE_TEST_427160.py と RustPython の parse(content.as_str(), Mode::Module, "").is_ok() を比較してください。不一致を再現して最小化し、その後、parser の動作が Python 3.11.2 と異なるかどうかを判断してください。報告された不一致が修正されるか、回帰テストによるカバレッジを伴って明確に分類されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, rust
- 領域
- compilers, testing-qa
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100