Metadata-Version: 2.4
Name: tree-sitter-devicetree2
Version: 0.1.0
Summary: Devicetree grammar for tree-sitter
Author-email: Waqar Hameed <whame@whame.dev>
License-Expression: GPL-3.0
Project-URL: Homepage, https://codeberg.org/whame/tree-sitter-devicetree
Project-URL: Funding, https://github.com/sponsors/whame
Keywords: incremental,parsing,tree-sitter,devicetree
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Compilers
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Typing :: Typed
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: core
Requires-Dist: tree-sitter~=0.24; extra == "core"
Dynamic: license-file

tree-sitter-devicetree
======================

Devicetree grammar for
[tree-sitter](https://github.com/tree-sitter/tree-sitter). The grammar is
directly ported from the
[Device Tree Compiler (dtc)](https://github.com/dgibson/dtc).

It also has (limited) support for the C preprocessor grammar. The goal here is
to be able to parse all Devicetree Source files in the
[Linux kernel source tree](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git).
The [test script](./test/parse.sh) can be used to verify this:

```
tree-sitter generate
./test/parse.sh /path/to/linux/
```

Copyright (C) 2026 Waqar Hameed and the tree-sitter-devictree contributors.
