Skip to content

feat(parser): implement parse_cast_type function and organize module structure#91

Merged
guxvr merged 5 commits into
developerfrom
feat/parser07-bug-no-parse-cast-type
May 25, 2026
Merged

feat(parser): implement parse_cast_type function and organize module structure#91
guxvr merged 5 commits into
developerfrom
feat/parser07-bug-no-parse-cast-type

Conversation

@Bappoz
Copy link
Copy Markdown
Owner

@Bappoz Bappoz commented May 23, 2026

This pull request refactors the implementation of the parse_cast_type function in the parser. The main change is moving the function from the expressions::prefix module to a new types module, which improves code organization and separation of concerns. There are no changes to the logic of the function itself.

Parser code organization:

  • Moved the parse_cast_type function from src/parser/rules/expressions/prefix.rs to a new module, src/parser/rules/types.rs, to better separate type parsing logic from expression parsing. [1] [2] [3] [4]
  • Added the new types module to the parser rules by updating src/parser/rules/mod.rs.

@Bappoz Bappoz self-assigned this May 23, 2026
@Bappoz Bappoz added bug Something isn't working parser labels May 23, 2026
@Bappoz Bappoz linked an issue May 23, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Collaborator

@guxvr guxvr left a comment

Choose a reason for hiding this comment

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

boa

@guxvr guxvr merged commit 1d2730e into developer May 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working parser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[PARSER-07] Bug: ´parse_cast_type´ duplicado / acoplamento com prefix

2 participants