Skip to content

v0.20.0-rc2

Pre-release
Pre-release

Choose a tag to compare

@odvcencio odvcencio released this 28 May 22:08
· 3877 commits to main since this release
6220f73

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 (no GOTREESITTER_GRAMMAR_BLOB_DIR needed). Finer-grained than grammar_set_core, and embedded unlike grammar_blobs_external. New generator cmd/gen_subset_blob_embeds; default builds remain byte-identical (backward compatible).
  • grammargen authoring CLI (#87) — emit / parse / doctor subcommands + 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_declaration shape while preserving child error state.

grammargen (markdown CommonMark + GFM substrate)

  • Visible block_quote / list / fenced_code_block wrapper emission at top-level and inside containers; pipe-table body-row de-merge + wrapper; link-ref-def / blank-line newline-state de-merge; markdown_inline generation-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 — TestMultiGrammarImportPipeline shape / external-scanner-wiring / alias-promotion regressions. To be fixed before promoting to v0.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.