apache / apache/datafusion-sqlparser-rs
Support `proc-macro` TokenStream
- Lingua principale
- Rust
- Stelle
- 3.5k
- Fork
- 772
- Merge medio
- 4g 9h
- PR unite (30g)
- 17
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
La issue menziona un proc-macro TokenStream e l’attuale percorso display-to-raw-string del parser, ma non indica file del repository né test. Inizia individuando questa conversione dell’input e determina come il supporto diretto a TokenStream possa preservare la tokenizzazione; il lavoro è completato quando proc-macro TokenStream può essere sottoposto a parsing senza il passaggio di display e ri-tokenizzazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust, sql
- Ambito
- compilers
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100