Need help?
<- Back

Comments (49)

  • acedTrex
    Claude attempted a treesitter to go portBetter title
  • sluongng
    Oh this is really neat for the Bazel community, as depending on tree-sitter to build a gazelle language extension, with Gazelle written in Go, requires you to use CGO.Now perhaps we can get rid of the CGO dependency and make it pure Go instead. I have pinged some folks to take a look at it.
  • 3rly
    Wouldn't `got` be confused with OpenBSD's Got: https://gameoftrees.org/index.html
  • trickypr
    Do you have an equivalent of TreeCursors or tree-sitter-generate?There are at least some use cases where neither queries nor walks are suitable. And I have run into cases where being able to regenerate and compile grammars on the fly is immeasurably helpful.At least for my use cases, this would be unusable.Also, what the hell is this:> partial [..] missing external scannerWhy do you have a parsing mode that guarantees incorrect outputs on some grammars (html comes to mind) and then use it as your “90x faster” benchmark figure?
  • shayief
    This is great, I was looking for something like this, thanks for making this!I imagine this can very useful for Go-based forges that need syntax highlighting (i.e. Gitea, Forgejo).I have a strict no-cgo requirement, so I might use it in my project, which is Git+JJ forge https://gitncoffee.com.
  • conartist6
    It looks like porting the custom C lexers is a big part of the trouble you had to go to do this.
  • gritzko
    That is very very interesting. I work on a similar project https://replicated.wiki/blog/partII.htmlI use CRDT merge though, cause 3-way metadata-less merges only provide very incremental improvements over e.g. git+mergiraf.How do you see got's main improvement over git?
  • jbreckmckye
    Interesting. I have a similar usecase but intended to use CGo tree-sitter with ZigAre these pretty up-to-date grammars? I'm awfully tempted to switch to your projectHow large are your binaries getting? I was concerned about the size of some of the grammars
  • skybrian
    How about making 'got' compatible with git repos like jujutsu? It would be a lot easier to try out.
  • irishcoffee
    Is it a go-ism that source for implementation and test code lives in the root of the repo or is this an LLM thing?