Repository navigation
perf!: regenerate the Java parser for runtime 13 - #45
Merged
Merged
Conversation
The parser now carries ABI 0x57420009 and requires @willbooster/web-tree-sitter and willbooster-tree-sitter 13.0.0 or later within major version 13. Co-authored-by: WillBooster (Claude Code) <agent@willbooster.com>
Co-authored-by: WillBooster (Claude Code) <agent@willbooster.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
WillBooster/tree-sitter v13.0.0 changes the parse table layout (split terminal/goto rows, one-word parse actions, default gotos for states that training never visits) and speeds up reductions. Runtime 13 rejects parsers generated for older ABIs, so this grammar has to be regenerated with the v13.0.0 CLI to use them. Syntax trees do not change.
Wasm size (
tree-sitter build --wasm --optimization z):@willbooster/tree-sitter-java@10.0.1(same as a rebuild ofmainwith runtime 10.0.2)Requirements
script/generate(profile-guided overtest/corpus) so that the tables use the same training input as before.Customer Summary
The npm package and the Rust crate now require
@willbooster/web-tree-sitter/willbooster-tree-sitter13.0.0 or later within major version 13; older runtimes reject the parser. The Wasm module is about 22% smaller. Parse results are unchanged.Technical Summary
src/parser.candsrc/tree_sitter/parser.hare regenerated byscript/generatewith the v13.0.0 CLI (ABI0x57420009).package.json(devDependency13.0.0, peerDependency^13.0.0),Cargo.toml/Cargo.lock(willbooster-tree-sitter13.0.0),bun.lock, and the runtime version, ABI number, and docs.rs link inREADME.mdandbindings/rust/lib.rsare updated.willbooster-tree-sitter-javamajor 11, which this breaking change releases.Testing
bun run verifybun run test(unit, corpus, Wasm, incremental, performance, and e2e including the browser test): 78 tests passedcargo test(unit test and doctest)