Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

they even have a tree-sitter parser for vhs/.tape -- https://github.com/charmbracelet/tree-sitter-vhs#readme -- but then they hand-roll the parser for it in the actual vhs repo

Is tree-sitter so hard to use in anger that it's worth the diverging implementations?



We started off hand rolling the parser and had that fully implemented and then wrote the tree-sitter grammar. If I were to do it again I would probably use tree-sitter for the actual repo so that the implementations were the same for sure.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: