[HN Gopher] Tree-Sitter
___________________________________________________________________
Tree-Sitter
Author : tosh
Score : 20 points
Date : 2024-02-17 10:30 UTC (12 hours ago)
(HTM) web link (tree-sitter.github.io)
(TXT) w3m dump (tree-sitter.github.io)
| Sphax wrote:
| I use neovim, the tree-sitter support is great especially with
| nvim-treesitter which means I can just run `TSInstall <parser
| name>` and I'm done.
|
| Writing a tree-sitter parser is not that easy though. I wrote
| tree-sitter-templ to parse templ files and I still have a hard
| time identifying some parsing errors, especially since I had to
| implement a custom external scanner which in my experience was
| the source of a lot of bugs.
|
| [0]: https://github.com/vrischmann/tree-sitter-templ
___________________________________________________________________
(page generated 2024-02-17 23:01 UTC)