Ok I tried Tree-sitter! Here is what I think about it...

preview_player
Показать описание

Chapters:
- 00:00:00 - Announcement
- 00:00:54 - What is Tree-sitter?
- 00:06:04 - Setting up Tree-Sitter
- 00:26:09 - Using Tree-Sitter from Jai
- 00:55:19 - Setting up C parser
- 01:14:59 - Testing on Real World Source Code
- 01:34:55 - Preliminary Conclusion
- 01:36:08 - Footnote
- 01:55:50 - Final Conclusion

References:

Socials:

Support:
- BTC: bc1qj820dmeazpeq5pjn89mlh9lhws7ghs9v34x9v9

не трясите мой триситтер
Рекомендации по теме
Комментарии
Автор

There is also the query API for treesitter, which makes it much easier to deal with treesitter as it provides easy pattern matching. You might want to consider using that to find the declarations.

remrevo
Автор

Bindings are for using a library from another language. Tree-sitter being a c library, it does not have c bindings.
But I can see how misleading not seeing a hyperlink for c can be :)

wherearemypants
Автор

> не трясите мой триситтер
~ Zozin, 2023

labsendeyshent
Автор

i unironically wrote my graduation thesis with tree sitter and stack graph, now i have Vietnam-style memories

templatepack
Автор

those are language bindings thats why c not listed

xhivo
Автор

It's written in C, so under heading "Language bindings" you will not find it, right? AKA C Programmers trolling C Programmers 😁

Tawre
Автор

Treesitter is following the naming and node structure based on the grammar rules defined in the C standard (which is pretty archaic). Node type of 'declaration' in that case would also include all variable declarations (globals in a header) but that wont matter if you're parsing a header file alone, except maybe in the case of something like an stb header that has definitions and local variables also as part of the the header file

HitMan
Автор

This is an incredible resource, wonderful, thank you so much, !

xBenny
Автор

1:01:29 ladies and gentlemen, I am sorry to announce, but tsoding died of ligma

monsieuralexandergulbu
Автор

I do web dev stuff and just started learning the c family, it’s just so satisfying watching someone acquire gorilla grip on a forrest filled with unknowns and burning qs. So neat knowing what happens when I use the little :TS* commands from neovim, and all the lights magically turn on

____r
Автор

"People don't appreciate simplicity" - that sooo reall across many aspect of life 🤣

thecodealchemist
Автор

55:07 the obly language tsoding doesn't hate is non-existing one 😂

monsieuralexandergulbu
Автор

I would like to see an emacs showcase it s really nice seeing you navigate and edit that fast

mehdiboujid
Автор

Really loved seeing both you and prime both diving into tree-sitter! I've used it for a bit of custom linting, and also loved how easy it was to use and even modify/write the grammar.

I used rust bindings btw ;)

jamesnewman
Автор

finished watching the vid. loved it when he sit all over the trees. truely a moment

flleaf
Автор

The screen is so bright I got flashbanged.

cariyaputta
Автор

What I love about Tsoding streams is how I don't feel alone and crazy when I realise how programming in 2023 is weird AF. Yes, life could be much simpler without those over-hyped languages/libraries with hundreds of layers of leaky abstractions and vendor locking. I loved how JAI "just worked" with GDB at 47:47 and I wish Java could do the same (since that's the language that is paying my bills).

ecosta
Автор

this is the tree-sitter video of all time

seventhtenth
Автор

Laughed pretty loudly at the fortnight joke

drdca
Автор

I think “fine” is also a reasonable term in addition to “granular”,
I guess “fine-grained” combines both?

drdca