Preserve whitespace while parsing
Michael-F-Bryan opened this issue · 0 comments
Michael-F-Bryan commented
At the moment, we deliberately filter out whitespace and comment tokens when constructing the Input
for our Parser
.
scad-rs/crates/syntax/src/parser.rs
Lines 156 to 166 in 558c141
Ideally, we would have a way to retain these tokens while making sure the parser never sees them, but a naive linear scan in Input::at()
would have a massive impact on performance.