Skip to content

More fuzzer fixes - #147

Merged
314eter merged 4 commits into
tree-sitter:masterfrom
314eter:ocamlgrammarfuzzer
Aug 30, 2026
Merged

More fuzzer fixes#147
314eter merged 4 commits into
tree-sitter:masterfrom
314eter:ocamlgrammarfuzzer

Conversation

@314eter

@314eter 314eter commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Some more issues found by ocamlgrammarfuzzer.

Indexing operators

The . in X.%(0) should be part of the indexing operator token .%. Otherwise X. will be parsed as the start of a module path, and then fail on the %. This is a minor fix, since the type checker will never accept an indexing operator on a module, but syntactically it's valid.

Block access types

OxCaml only supports the block access types idx_imm and idx_mut, but the grammar allows arbitrary identifiers.

Module strengthening

Module strengthening can't be combined with other module type constraints. In module rec M : S with M and type t = t is invalid, but module rec M : S with M and M : S should be allowed.

@314eter
314eter merged commit a301d7e into tree-sitter:master Aug 30, 2026
12 checks passed
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