Skip to content

sogaiu/ts-questions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tree-sitter Questions

Some tree-sitter-related questions with discussions and some answers.

Prerequisites for Scripts

There are some scripts in this repository with these prerequisites:

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.

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

Releases

No releases published

Packages

No packages published