gwenn / lemon-rs

LALR(1) parser generator for Rust based on Lemon + SQL parser
The Unlicense
48 stars 10 forks source link

Spanned AST nodes #33

Open MarinPostma opened 1 year ago

MarinPostma commented 1 year ago

I am wondering how hard it would be to have spanned AST node. It would be very useful to retrieve the subslice of the original string that an AST node corresponds to. This is quite common in parsers, such as