RustPython / RustPython/Parser
Consolidate parsing of `Expr::Name` in `TypeAliasName`, `MatchName`, and `Atom<Goal>`
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Rust
- 星號
- 117
- 分支
- 38
- 平均合併
- 4 天 7 小時
- 30 天內合併 PR
- 1
描述
We have three parser descriptions for in the LALRPOP grammar for generating Expr::Name from an Identifier.
TypeAliasNameMatchNameAtom<Goal>
These could be consolidated into a single reused identifier for simplicity and clarity.
Originally posted by @MichaReiser in https://github.com/RustPython/Parser/pull/97#discussion_r1263930630
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先找出 TypeAliasName、MatchName 和 Atom 的 LALRPOP 文法定義,然後比較它們各自如何將 Identifier 轉換為 Expr::Name。將這些描述整合成一個可重複使用的識別碼,並確認現有的剖析行為維持不變。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust
- 領域
- compilers
- Issue 類型
- 重構
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100