chumsky icon indicating copy to clipboard operation
chumsky copied to clipboard

Tutorial should discuss lexers

Open Timmmm opened this issue 1 year ago • 2 comments

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).

Timmmm avatar Dec 08 '22 14:12 Timmmm