https://github.com/marcel0ll/tree-sitter-test
Testing tree sitter
https://github.com/marcel0ll/tree-sitter-test
Last synced: 10 months ago
JSON representation
Testing tree sitter
- Host: GitHub
- URL: https://github.com/marcel0ll/tree-sitter-test
- Owner: marcel0ll
- Created: 2020-12-15T03:42:30.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-15T03:48:49.000Z (over 5 years ago)
- Last Synced: 2025-03-31T22:06:20.003Z (about 1 year ago)
- Language: C
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Testing tree sitter
To run this code you will need:
- tree-sitter cloned at ../tree-sitter
- tree-sitter-javascript cloned at ../tree-sitter-javascript
- tree-sitter-json cloned at ../tree-sitter-json
# Idea
The idea is to use tree-sitter incremental parsing to build an incremental code
(re)generator such as an incremental transpiler or incremental linter.
Will this enable incremental building of resources in bundlers and SSG?
I believe it might, but I may be wrong.
In any way it is good to practice C.
# State of this code
Currently this code is kind broken, I am struggling with strings dynamic
reallocation in C and probably making some mistake with pointers and values.
## node-version
There is also a first experiment using tree-sitter node bindings
```sh
npm install
node index.js
```