tree-sitter / node-tree-sitter

Node.js bindings for tree-sitter
https://www.npmjs.com/package/tree-sitter
MIT License
659 stars 115 forks source link

Repository name change name to tree-sitter-node #183

Closed Angelk90 closed 11 months ago

Angelk90 commented 11 months ago

Hi @verhovsky, I looked at the project names, I saw that most repositories start with this nomenclature:

tree-sitter-, then followed by the name of the language used.

Only some, like in this case node, use a different project nomenclature.

It would be possible to change the name of the repository to maintain this equality.

This is the list of all the repositories that have different nomenclature: 1) node-tree-sitter 2) py-tree-sitter 3) csharp-tree-sitter 4) haskell-tree-sitter 5) ruby-tree-sitter.old 6) rust-tree-sitter 7) afl-tree-sitter

amaanq commented 11 months ago

bindings use this convention, grammars use the other

verhovsky commented 11 months ago

language bindings are called language-tree-sitter and the parser for that language is called tree-sitter-language.

tree-sitter is a C library. If I want to write a program that uses tree-sitter but I don't want to write that program in C, how do I use a C library from Python or Node or whatever? The answer is you need language bindings for the C library into your programming language of choice. The difference between py-tree-sitter and tree-sitter-python is that tree-sitter-python is for parsing Python programs, whereas py-tree-sitter are Python bindings for tree-sitter, it is used for parsing programs in any programming language from Python.