News for hackers. Stuff that matters.
Re:Stack Graphs by dcreager on Thursday December 09, 2021 @02:03PM (#29501493)
> And how to prune and simplify CST to AST at scale (supporting many languages)?

We're not doing any pruning or CST→AST translation, we just operate directly on the CST. With the new graph DSL you should be able to implement something like that, since an AST is a tree, and a tree is one shape of graph that you could create. For our purposes, that isn't a meaningfully useful step, since we can just as easily generate the stack graph structures that we need directly from the CST we get from the tree-sitter grammar.

There are no comments on this comment yet.