Repository navigation
v0.20.0-rc2
Pre-release
Pre-release
Second release candidate on the 0.20 line. Builds on v0.20.0-rc1 (markdown grammargen substrate) with runtime/parser wins, a new packaging feature, and further markdown grammargen fixes. CI green (build, parity-cgo, perf-regression).
Features
- Selective embedded grammar builds (#92, addresses #88) — build with
-tags 'grammar_subset grammar_subset_<lang>'to embed only the chosen grammar blobs. A single-language binary drops ~24 MB → ~3.7 MB (84.7%) and stays self-contained (noGOTREESITTER_GRAMMAR_BLOB_DIRneeded). Finer-grained thangrammar_set_core, and embedded unlikegrammar_blobs_external. New generatorcmd/gen_subset_blob_embeds; default builds remain byte-identical (backward compatible). - grammargen authoring CLI (#87) —
emit/parse/doctorsubcommands + docs.
Parser / runtime
- JS GLR fork reduction (#90) — Go-vs-C full-parse ratio 5.95× → 4.41× by resolving 4 JavaScript conflict states to the repetition-shift (matching tree-sitter C). Byte-for-byte JS C-parity preserved; exhaustive ring-matrix proven non-regressing.
- Kotlin error-recovery (#86) — recovered parse roots expose
source_file/function_declarationshape while preserving child error state.
grammargen (markdown CommonMark + GFM substrate)
- Visible
block_quote/list/fenced_code_blockwrapper emission at top-level and inside containers; pipe-table body-row de-merge + wrapper; link-ref-def / blank-line newline-state de-merge;markdown_inlinegeneration-timeout calibration.
Known issues — why this is rc2, not v0.20.0
These are grammargen compiler-import quality regressions (reproducing the grammar from grammar.json). The bundled .bin blobs for these languages are unaffected and runtime parsing is fine. They pass within test floors (CI is green) but block a clean v0.20.0:
requirements,jsdoc,graphql,proto—TestMultiGrammarImportPipelineshape / external-scanner-wiring / alias-promotion regressions. To be fixed before promoting tov0.20.0.
Downstream guidance
Runtime consumers (parsing via the bundled blobs) can adopt rc2 safely — the parser-core work is proven non-regressing. Consumers using grammargen to import requirements/jsdoc/graphql/proto from grammar.json should wait for v0.20.0.