Skip to content

simplify lexer_tests using macro - #989

Merged
HalFrgrd merged 1 commit into
HalFrgrd:masterfrom
elseawhy:lexer
Sep 6, 2026
Merged

HalFrgrd merged 1 commit into
HalFrgrd:masterfrom
elseawhy:lexer

Conversation

@elseawhy

@elseawhy elseawhy commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This pr attempts to make lexer_tests.rs more readable and maintainable by using macro.

  • Replaced repetitive lexer.next_token() boilerplate with a clean table driven assert_lex! macro.
  • Shaved ~370 loc to improve readability
  • The runtime logic remains the same

@HalFrgrd

HalFrgrd commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Cool, thank you!

@HalFrgrd
HalFrgrd merged commit 211383e into HalFrgrd:master Sep 6, 2026
6 of 7 checks passed
@elseawhy
elseawhy deleted the lexer branch September 7, 2026 01:30
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