Tree-sitter: an incremental parsing system for programming tools
This is really cool, I 100% agree that as programmers we’re editing and thinking in terms of ASTs. It just happens that text is a high density way to represent those ASTs.<p>I’m going to play with this and see if I can make a generic language server for vscode that works across languages. Unless someone has already done that.<p>What would be really cool is that tree-sitter (or a sister package) that provides incremental formatting primitives across languages.<p>The closest language agnostic formatter that comes to mind is prettier.js with its extensions.<p>incremental parser —> language server -> formatter across languages would be super rad.