Skip to content

simplify lexer_tests using macro - #989

Open
elseawhy wants to merge 1 commit into
HalFrgrd:masterfrom
elseawhy:lexer
Open

simplify lexer_tests using macro#989
elseawhy wants to merge 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

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.

1 participant