Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ABI versions

Parsers generated with tree-sitter have an associated ABI version, which establishes hard compatibility boundaries between the generated parser and the tree-sitter library.

A given version of the tree-sitter library is only able to load parsers generated with supported ABI versions:

tree-sitter versionMin parser ABI versionMax parser ABI version
0.1499
>=0.15.0, <=0.15.7910
>=0.15.8, <=0.16911
0.17, 0.18912
>=0.19, <=0.20.21313
>=0.20.3, <=0.241314
>=0.251315

By default, the tree-sitter CLI will generate parsers using the latest available ABI for that version, but an older ABI (supported by the CLI) can be selected by passing the --abi option to the generate command.

Note that the ABI version range supported by the CLI can be smaller than for the library: When a new ABI version is released, older versions will be phased out over a deprecation period, which starts with no longer being able to generate parsers with the oldest ABI version.