apache / apache/datafusion-sqlparser-rs
Support `proc-macro` TokenStream
- Vorherrschende Sprache
- Rust
- Sterne
- 3.5k
- Forks
- 772
- Ø Merge
- 4 T. 9 Std.
- Gemergte PRs (30 T.)
- 17
Beschreibung
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.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Das Issue erwähnt einen proc-macro TokenStream und den aktuellen display-to-raw-string-Pfad des Parsers, aber keine Repository-Dateien oder Tests. Beginne damit, diese Eingabekonvertierung zu lokalisieren, und ermittle, wie die direkte Unterstützung von TokenStream die Tokenisierung beibehalten kann; abgeschlossen ist die Aufgabe, wenn proc-macro TokenStream ohne den display- und Re-Tokenisierungs-Schritt geparst werden kann.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- rust, sql
- Bereich
- compilers
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100