3 ms·
ELI5: should you specify the target language? The example is in TS, how we expand it to other programming languages?
by wslh 3y ago
ELI5: should you specify the target language? The example is in TS, how we expand it to other programming languages?
- lyjackal 3y agoI see an -l ts And an -l rs In the examples. Those target typescript and rust. Looks like it’s built in tree-sitter, so presumably any language that supports that should work
- wslh 3y agoI understand this approach is different from Semmle [1] (has queries and states). Do you know if they are modern alternatives to it? [1] https://en.wikipedia.org/wiki/Semmle https://en.wikipedia.org/wiki/Semmle
- simonw 3y agoThere is a list of supported languages here: https://ast-grep.github.io/guide/introduction.html#supported-languages https://ast-grep.github.io/guide/introduction.html#supported... If you leave off the language command line option it detects the language from the extension on your files.