Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aminya/d-tree-sitter
The D bindings for tree-sitter
https://github.com/aminya/d-tree-sitter
bindings d-lang parser tree-sitter
Last synced: 23 days ago
JSON representation
The D bindings for tree-sitter
- Host: GitHub
- URL: https://github.com/aminya/d-tree-sitter
- Owner: aminya
- License: apache-2.0
- Created: 2021-09-13T01:46:12.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T07:19:41.000Z (7 months ago)
- Last Synced: 2024-12-14T00:40:24.885Z (about 2 months ago)
- Topics: bindings, d-lang, parser, tree-sitter
- Language: D
- Homepage: https://aminya.github.io/d-tree-sitter/
- Size: 103 KB
- Stars: 9
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# d-tree-sitter
[![CI](https://github.com/aminya/d-tree-sitter/actions/workflows/CI.yml/badge.svg)](https://github.com/aminya/d-tree-sitter/actions/workflows/CI.yml)
The D bindings for tree-sitter, a library for incremental parsing.
# Build
You need to have either [cmake](https://cmake.org/) or [meson](https://mesonbuild.com/SimpleStart.html#installing-meson) installed and have it on the path. This is required for building the C library. Then just run:
```ps1
dub build
```To set up a reproducible build environment, you can run [setup-cpp](https://github.com/aminya/setup-cpp) with `--llvm=13.0.0`, `--cmake=true`, `--ninja=true`, and `--vcvarsall=true`. This will set up LLVM 13.0.0 and the proper environment variables.
# Usage
```d
import d_tree_sitter;
```See the documentation for the API here:
[Documentation](https://aminya.github.io/d-tree-sitter/)
# License
Copyright © 2021, Amin Yahyaabadi
Licensed under the Apache-2.0 License.