Skip to content

fix(grey_lang): fix type mismatch, imports cleanup, and lexer cleanup#12

Draft
cto-new[bot] wants to merge 1 commit intomainfrom
fix/grey_compiler-build-errors-types-lexer-unused-imports
Draft

fix(grey_lang): fix type mismatch, imports cleanup, and lexer cleanup#12
cto-new[bot] wants to merge 1 commit intomainfrom
fix/grey_compiler-build-errors-types-lexer-unused-imports

Conversation

@cto-new
Copy link
Copy Markdown

@cto-new cto-new Bot commented Dec 15, 2025

Summary

Fix build issues in Grey language front-end by addressing a type-mismatch, removing unused imports, and cleaning up the lexer to resolve an unreachable pattern.

Details

  • Correct type conversion call by passing a reference to the AST type
  • Remove unused DiagnosticError imports from types.rs and lib.rs
  • Eliminate a duplicate '<' match arm in lexer.rs and tidy related logic
  • Remove unnecessary mut on chars in lexer.rs
  • All changes aim to restore a clean cargo build and tests without extraneous warnings

… lexer

This fix resolves outstanding build issues in the Grey language front-end by correcting a type-checking call, eliminating unused diagnostics imports, and cleaning up lexer patterns.

- Pass a reference to the AST type when converting to internal types (fixes the Type mismatch)
- Remove unused DiagnosticError imports from types.rs and lib.rs
- Remove a duplicate LessThan/CoordLiteral pattern in the lexer and tidy up surrounding logic
- Eliminate unnecessary mutable binding in the lexer

Impact: builds and tests should proceed with warnings minimized; no breaking changes.
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.

0 participants