Skip to content

Conversation

@zharinov
Copy link
Member

No description provided.

This commit restructures the parser grammar into separate modules for better organization and
maintainability. It also includes several minor refactors and bug fixes:

- Splits grammar logic into `expressions`, `items`, `utils`, and `validation` modules.
- Renames `make snapshots` to `make shot` in `AGENTS.md` and `Makefile`.
- Removes unused `ROOT_EXPR_FIRST` from `core.rs`.
- Updates `StringLiteral` documentation in `cst.rs`.
- Fixes a bug where `SyntaxKind::Error` was not handled correctly in `parse_root`.
- Improves error recovery in `parse_expr_or_error` and introduces `error_until_next_def`.
- Adds new validation functions for capture names, definition names, branch labels, and field names.
- Corrects snapshot tests to reflect expected output.
- Removes a misleading error message in `validation_tests.rs`.
@zharinov zharinov enabled auto-merge (squash) December 16, 2025 00:32
@zharinov zharinov merged commit a38d098 into master Dec 16, 2025
4 checks passed
@zharinov zharinov deleted the refactor/parser-core branch December 16, 2025 00:32
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