Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sogaiu/ts-questions
Tree-sitter Questions
https://github.com/sogaiu/ts-questions
questions tree-sitter
Last synced: about 1 month ago
JSON representation
Tree-sitter Questions
- Host: GitHub
- URL: https://github.com/sogaiu/ts-questions
- Owner: sogaiu
- Created: 2023-02-09T03:34:16.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-19T10:56:47.000Z (9 months ago)
- Last Synced: 2024-05-19T14:52:55.410Z (9 months ago)
- Topics: questions, tree-sitter
- Language: Janet
- Homepage:
- Size: 95.7 KB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tree-sitter Questions
Some tree-sitter-related questions with discussions and some answers.
* [What Paths are Relevant for `tree-sitter`
Use?](questions/what-paths-are-relevant/README.md)
* [What Files Are Involved in `tree-sitter
generate`?](questions/generate-subcommand-files/README.md)
* [Should Generated Parser Source Be
Committed?](questions/should-parser-source-be-committed/README.md)
* [What ABI Version Should Be Used for
`parser.c`?](questions/what-abi-level-should-be-used/README.md)
* [Are External Scanners Commonly
Used?](questions/are-external-scanners-common/README.md)
* [What Regular Expression Features Are
Supported?](questions/what-regex-features-are-supported/README.md)* [Which Version of Emscripten Should be Used for the
Playground?](questions/which-version-of-emscripten-should-be-used-for-the-playground/README.md)
* [How Can a Custom Playground Be
Hosted?](questions/how-can-a-custom-playground-be-hosted/README.md)* [How Can One Test for An Expected
Error?](questions/how-to-test-for-an-expected-error/README.md)
* [Is There Some Way to Influence Error Recovery?](questions/is-there-some-way-to-influence-error-recovery/README.md)* [Is There A Changelog?](questions/is-there-a-changelog/README.md)
* [What Are Some Projects That Use
Tree-sitter?](questions/what-are-some-projects-that-use-tree-sitter/README.md)## Prerequisites for Scripts
There are some scripts in this repository with these prerequisites:
* git
* [janet](https://github.com/janet-lang/janet)Assuming those things are in place, clone this repository:
```
git clone https://github.com/sogaiu/ts-questions
```The scripts that involve generating statistics across multiple
repositories assume that parser / grammar repositories have been
fetched to live under a `repos` subdirectory.The `repos` directory can be populated by running the following script
from this project's root directory:```
janet ./script/fetch-repositories.janet
```The list of repositories to fetch is determined via the file
[`ts-grammar-repositories.txt`](ts-grammar-repositories.txt).Repositories within `repos` can be updated by using the following
invocation in a manner analogous to the fetching one:```
janet ./script/update-repositories.janet
```This might be useful if one was interested in up-to-date statistics.
## Breaking Change
The scripts in this repository used to be shell scripts, but this was
becoming unwieldy and awkward to maintain. Most of them have been
removed but the scripts for fetching and updating repositories still
exist in the `script` subdirectory.These remaining shell scripts can still be used for fetching and
updating repositories, but they don't play well with the
statistics-generating `.janet` scripts.## Credits
* ahelwer
* ahlinc
* amaanq
* clason and nvim-treesitter contributors
* damieng
* dannyfreeman
* NoahTheDuke