Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial should discuss lexers #227

Open
Timmmm opened this issue Dec 8, 2022 · 2 comments
Open

Tutorial should discuss lexers #227

Timmmm opened this issue Dec 8, 2022 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Timmmm
Copy link
Contributor

Timmmm commented Dec 8, 2022

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

@zesterer
Copy link
Owner

Yes, I agree. I've been meaning to go into a little more detail about lexing and perhaps separate out the tutorial into a separate lexing stage. I've not yet had time to commit to this though.

@zesterer zesterer added the documentation Improvements or additions to documentation label Feb 20, 2023
@Zij-IT
Copy link
Contributor

Zij-IT commented Jun 11, 2023

This could be a good candidate for a chapter in the book that I am trying to introduce with #442.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants