4 ms·
Interesting. What are the limitations associated with current tooling, e.g. described at https://kadimi.com/cli-refactoring/ https://kadimi.com/cli-refactoring/
by abrichr 4y ago
Interesting. What are the limitations associated with current tooling, e.g. described at https://kadimi.com/cli-refactoring/ https://kadimi.com/cli-refactoring/ and https://waylonwalker.com/refactor-in-cli/ https://waylonwalker.com/refactor-in-cli/ ?
- pdimitar 4y agoThe limitations are that these are very plain regexes. I've screwed up a good amount of time doing that, it's not good enough. We need actual structured semantic analysis, the way the compiler / interpreter does it.
- bbkane 4y agoThis sounds like a great use case for Tree-sitter ( https://tree-sitter.github.io/tree-sitter/ https://tree-sitter.github.io/tree-sitter/ ) GitHub uses Tree-sitter for code highlighting and goto definition, so it already has grammars for many languages