You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add table-driven lexer tests for keywords and built-in types #388
The lexer currently has no unit tests. Keyword and built-in type classification in front/lexer/src/ident.rs is a compact, stable surface that is well suited to a first contribution.
Scope
Add table-driven tests in the lexer crate for every language keyword and built-in type spelling.
Verify exact-boundary behavior: for example, fun is a keyword while funny is an identifier.
Cover ptr and array, which intentionally remain identifier tokens for the type parser.
Verify the token lexeme and line number as well as the token kind.
Do not change the Wave grammar or add new keywords.
Likely files
front/lexer/src/ident.rs
A new test module under front/lexer/tests/
Completion criteria
Every keyword and built-in type in TokenType has an assertion.
Activity
Fix frontend contracts and native regression tests (#723)