apache / apache/datafusion-sqlparser-rs
Support `proc-macro` TokenStream
- 主要語言
- Rust
- 星號
- 3.5k
- 分支
- 772
- 平均合併
- 4 天 9 小時
- 30 天內合併 PR
- 17
描述
I'm currently writing a proc macro that uses SQL to generate code that works with the storage pattern in [`specs`](https://github.com/slide-rs/specs). As is, I have to call `display` on the `TokenStream`, which converts it to a raw string. This will mean I'm undoing the tokenization for this parser to re-tokenize, while it should be possible for this parser to use the `TokenStream` directly.
This is low priority for me, as this issue only causes excess compilation time, but after creating this proc macro, I can add it to my own to-do.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
該 issue 提到了一个 proc-macro TokenStream 以及 parser 目前的 display-to-raw-string 路徑,但沒有提供任何 repository 檔案或測試。首先定位此輸入轉換,並確定如何透過直接支援 TokenStream 來保留 tokenization;當能夠在不經過 display 和重新 tokenization 步驟的情況下解析 proc-macro TokenStream 時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- rust, sql
- 領域
- compilers
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100