Skip to content

parser: Collapse parser and tokenizer. - #456

Open
emilio wants to merge 2 commits into
mainfrom
collapse-tokenizer
Open

emilio wants to merge 2 commits into
mainfrom
collapse-tokenizer

Conversation

@emilio

@emilio emilio commented Sep 15, 2026

Copy link
Copy Markdown
Member

Now they are 1:1 so the distinction is mostly internal. This allows
state tracking to be a bit simpler.

Now they are 1:1 so the distinction is mostly internal. This allows
state tracking to be a bit simpler.
@emilio
emilio requested a review from SimonSapin September 15, 2026 10:56
@emilio

emilio commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

@SimonSapin not sure how you feel about this, the main point I wanted to get out of this is to be able to not track at_start_of separately, but I think it makes sense in general now that Parser and Tokenizer are effectively 1:1.

@SimonSapin

Copy link
Copy Markdown
Member

Aren’t there tests that run the tokenizer by itsef?

@emilio

emilio commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

Aren’t there tests that run the tokenizer by itsef?

Not really

@emilio

emilio commented Sep 15, 2026

Copy link
Copy Markdown
Member Author

Fixed CI (msrv didn't support the if foo && let Some(bar) = ... { syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants