chumsky icon indicating copy to clipboard operation
chumsky copied to clipboard

[Feature request] Pratt parsing with spans

Open stefnotch opened this issue 10 months ago • 8 comments

When using the new pratt parsing feature, how would I create a syntax tree which includes spans?

e.g. How does one get spans that include the operators? And how does one get the spans of the operators themselves? https://github.com/zesterer/chumsky/blob/01b96cd643e4b47b36ee76baa57294d2153965f7/src/pratt.rs#L709-L719

stefnotch avatar Aug 22 '23 11:08 stefnotch