SaaSHub helps you find the best software and product alternatives Learn more →
Top 16 C tree-sitter Projects
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Project mention: Tbsp – treesitter-based source processing language | news.ycombinator.com | 2024-09-01
The md-to-html demo is a good one, but worth mentioning that the Markdown parser[1] being used may not be suitable for more complex documents. From the README:
> "...it is not recommended to use this parser where correctness is important. The main goal for this parser is to provide syntactical information for syntax highlighting..."
There's also a separate block-level and inline parser, not sure how `tbsp` handles nested or multi-stage parsing.
[1]: https://github.com/tree-sitter-grammars/tree-sitter-markdown
-
Project mention: Ask HN: What are some unpopular technologies you wish people knew more about? | news.ycombinator.com | 2023-12-02
(1) Zulip Chat - https://zulip.com/ - seems to be reasonably popular, but more people should know about it
I’ve been using it for over 5 years now [1], and it’s as good as ever. It’s way faster than any other chat app I’ve used. It has a good UI and conversation model. It has a simple and functional API that lets me curl threads and write blog posts based on them.
(only problem is that I Ctrl-+ in my browser to make the font bigger – I think it’s too dense for most people)
(2) re2c regex to state machine compiler - https://re2c.org
A gem from the 90’s, which people have done a great job maintaining and improving (getting Go and Rust target support in the last few years). I started using it in 2016, and used for a new program a few months ago. I came to the conclusion that it should have been built into C, because C has shitty string processing – and Ken Thompson both invented C AND brought regular languages to computing !!
In comparison, treesitter lexers are very low level, fiddly, and error prone. I recently saw dozens of ad hoc fixes to the tree-sitter-bash lexer, which is unsurprising if you look at the structure of the code (manually crawling through backslashes and braces in C).
https://github.com/tree-sitter/tree-sitter-bash/blob/master/...
These fixes are definitely appreciated, but I think it indicates a problem with the model itself.
(based on https://lobste.rs/s/endspx/software_you_are_thankful_for#c_y...)
[1] https://www.oilshell.org/blog/2018/04/26.html
-
-
-
-
-
-
-
-
-
-
-
-
-
C tree-sitter discussion
C tree-sitter related posts
-
Mastering JSX Editing in Emacs with Tree-sitter
-
Linus Torvalds adds arbitrary tabs to kernel code
-
Tree-Sitter
-
How to pass environment variables to treesitter grammar
-
adding go html template highlight in lazyvim
-
what terminal editor was intended to replace emacs in macOS with emacs bindings?
-
Custom Grammar not recognized as Highlighting
-
A note from our sponsor - SaaSHub
www.saashub.com | 15 Oct 2024
Index
What are some of the best open-source tree-sitter projects in C? This list will help you:
Project | Stars | |
---|---|---|
1 | go-tree-sitter | 432 |
2 | tree-sitter-markdown | 416 |
3 | tree-sitter-bash | 209 |
4 | tree-sitter-ruby | 178 |
5 | tree-sitter-haskell | 154 |
6 | tree-sitter-comment | 134 |
7 | tree-sitter-html | 132 |
8 | tree-sitter-go-template | 78 |
9 | tree-sitter-tlaplus | 57 |
10 | tree-sitter-fish | 37 |
11 | grove | 18 |
12 | tree-sitter-csv | 9 |
13 | tree-sitter-formula | 3 |
14 | tree-sitter-xml | 2 |
15 | tree-sitter-visitor | 1 |
16 | tree-sitter-ecsact | 0 |