chumsky
chumsky copied to clipboard
Tutorial should discuss lexers
Hi, I've been meaning to try Chumsky for ages and finally got round to reading the tutorial. Mostly makes sense. Then I look at the examples, e.g. nano_rust.rs
and it's quite different to the code in the tutorial - it has a separate lexer and parser whereas the tutorial lexes as it parses.
I wonder if it is worth mentioning in the tutorial why this is done? Presumably there are some advantages to it but it isn't obvious what they are just from reading the code (unless it's just easier to organise that way).