🌴 TreeHaver is a cross-Ruby adapter for the tree-sitter parsing library that works seamlessly across MRI Ruby, JRuby, and TruffleRuby. It provides a unified API for parsing source code using tree-sitter grammars, regardless of your Ruby implementation. Like Faraday for HTTP or multi_json for JSON, TreeHaver lets you write once and run anywhere with automatic backend selection (MRI C extensions, Rust extensions, FFI, or Java).
Required Ruby Version
>= 3.2.0
Authors
Peter H. Boling