Objective-C grammar for tree-sitter (v3.0.2). Parses Objective-C and Objective-C++ source code into a concrete syntax tree. Requires Python >=3.9.
pip install tree-sitter-objcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal example: load the grammar, parse ObjC code, and print the syntax tree.
Use 'from tree_sitter_objc import language' and pass it to Language() or use Language('tree_sitter_objc', 'objc').When using Language('tree_sitter_objc', 'objc'), the second argument is the language name, not the module name.Upgrade Python to 3.9 or later.
Use 'from tree_sitter_objc import language' or 'from tree_sitter import Language'.
Install the latest version: pip install --upgrade tree-sitter-objc.
Use 'objc' (not 'objective-c' or 'objc++') for the language name.