Parser: target module layout for splitting src/parser/mod.rs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with src/parser/mod.rs and compare its structure with src/ast/; the proposed module layout and migration order are listed in this issue. Read the parent issue #2591 and inspect the existing parser files named in the layout to understand shared helpers and module boundaries. Done means the parser is split into the proposed modules in the listed order, with parsing behavior preserved.
索引モデルが issue の本文から書いたものです。
説明
Part of #2591, scoped to the parser only.
#2591 agreed on a series of pure-move PRs but did not fix the target layout. #944 and #1581 both went per-statement (~35 files, one per top-level keyword). #1581 stalled as one large
PR, and its author noted that shared helpers ended up placed arbitrarily.
Proposed layout
A flat layout mirroring src/ast/, so a struct in ast/ddl.rs is parsed in parser/ddl.rs:
src/parser/
mod.rs Parser struct, token cursor, errors, identifiers, lists, statement dispatch
expr.rs precedence climbing, prefix/infix, function calls, literals
query.rs SELECT, set ops, CTEs, FROM/joins, windows
data_type.rs
ddl.rs CREATE TABLE, columns, constraints, DROP (existing create.rs, alter.rs stay beside)
dml.rs INSERT / UPDATE / DELETE (existing merge.rs stays beside)
dcl.rs GRANT / REVOKE / roles / policies
statement.rs SHOW / SET / DECLARE / transactions / EXPLAIN / misc
Order
Smallest conflict surface first:
- dcl
- dml
- data_type
- statement
- ddl
- query
- expr
@alamb @LucaCappelletti94 wdyt?
- 主要言語
- Rust
- スター
- 3.5k
- フォーク
- 805
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 116
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/datafusion-sqlparser-rs のほかの issue
-
Redshift
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apache/datafusion-sqlparser-rs#2959 ·
メンテナーはふだん 1 日以内に返信
-
Redshift
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/datafusion-sqlparser-rs#2958 ·
メンテナーはふだん 1 日以内に返信
-
PostgreSQL
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/datafusion-sqlparser-rs#2862 ·
メンテナーはふだん 1 日以内に返信
-
PostgreSQL
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/datafusion-sqlparser-rs#2861 ·
メンテナーはふだん 1 日以内に返信
-
PostgreSQL
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
apache/datafusion-sqlparser-rs#2858 ·
メンテナーはふだん 1 日以内に返信
apache/datafusion-sqlparser-rs の issue をすべて見る
似ている issue
-
area:schema documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ElectronicWave/Elemental#252 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
dekobon/big-code-analysis#1887 ·
メンテナーはふだん 1 日以内に返信
-
Shell中文符号输入异常オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信