Skip to content

refactor: Minify redundant advance, associate Token lifetime with parser - #51

Merged
thatmagicalcat merged 1 commit into
thatmagicalcat:mainfrom
gavincrawford:refactor/minify-advance
Jul 21, 2026
Merged

refactor: Minify redundant advance, associate Token lifetime with parser#51
thatmagicalcat merged 1 commit into
thatmagicalcat:mainfrom
gavincrawford:refactor/minify-advance

Conversation

@gavincrawford

Copy link
Copy Markdown
Contributor

This PR drops 48 lines of redundant advance calls in favor of one at the head of parse_atom.
This also comes with a direct association of Token with the lifetime specified for the entire parser, allowing the code to compile. An anonymous lifetime here is no different in practice, so builds clean

@gavincrawford
gavincrawford marked this pull request as draft July 21, 2026 04:32
@gavincrawford
gavincrawford marked this pull request as ready for review July 21, 2026 04:37

@thatmagicalcat thatmagicalcat left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noice

@thatmagicalcat
thatmagicalcat merged commit d63a5dc into thatmagicalcat:main Jul 21, 2026
1 check passed
@gavincrawford
gavincrawford deleted the refactor/minify-advance branch July 21, 2026 14:45
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