C tree-sitter

Open-source C projects categorized as tree-sitter

Top 16 C tree-sitter Projects

tree-sitter
  • go-tree-sitter

    Golang bindings for tree-sitter https://github.com/tree-sitter/tree-sitter

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • tree-sitter-markdown

    Markdown grammar for tree-sitter

    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

  • tree-sitter-bash

    Bash grammar for tree-sitter

    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

  • tree-sitter-ruby

    Ruby grammar for tree-sitter

  • tree-sitter-haskell

    Haskell grammar for tree-sitter.

  • tree-sitter-comment

    Tree-sitter grammar for comment tags like TODO, FIXME(user).

  • tree-sitter-html

    HTML grammar for Tree-sitter

  • tree-sitter-go-template

    Golang template grammar for tree-sitter

  • tree-sitter-tlaplus

    A tree-sitter grammar for TLA⁺ and PlusCal

  • tree-sitter-fish

    Fish grammar for tree-sitter

  • grove

    Universal AST parser built on Tree-sitter (by mintlify)

  • tree-sitter-csv

    csv grammar for tree-sitter

  • tree-sitter-formula

    Formula grammar for tree-sitter

  • tree-sitter-xml

    XML Grammar for Tree-Sitter

  • tree-sitter-visitor

    Procedural macro for generating a visitor trait for Tree Sitter Rust bindings

  • tree-sitter-ecsact

    Ecsact tree-sitter parser

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C tree-sitter discussion

Log in or Post with

C tree-sitter related posts

  • Mastering JSX Editing in Emacs with Tree-sitter

    1 project | dev.to | 15 May 2024
  • Linus Torvalds adds arbitrary tabs to kernel code

    3 projects | news.ycombinator.com | 17 Apr 2024
  • Tree-Sitter

    4 projects | news.ycombinator.com | 17 Feb 2024
  • How to pass environment variables to treesitter grammar

    1 project | /r/NixOS | 27 Jul 2023
  • adding go html template highlight in lazyvim

    2 projects | /r/neovim | 19 Jun 2023
  • what terminal editor was intended to replace emacs in macOS with emacs bindings?

    2 projects | /r/emacs | 13 Apr 2023
  • Custom Grammar not recognized as Highlighting

    3 projects | /r/neovim | 29 Mar 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 15 Oct 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

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

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com

Did you konow that C is
the 7th most popular programming language
based on number of metions?