srgn
syntax-searcher
srgn | syntax-searcher | |
---|---|---|
5 | 1 | |
395 | 4 | |
- | - | |
9.4 | 6.6 | |
about 1 month ago | 7 months ago | |
Rust | Rust | |
MIT License | GNU Affero General Public License v3.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
srgn
- Show HN: Srgn, AST-aware text manipulation
-
Ask HN: What apps have you created for your own use?
It's currently whitelist-based [0]. The downside is larger (code) size. The upside is simplicity. I imagine a blacklist could also work well, at smaller size but with more preprocessing needed.
[0]: https://github.com/alexpovel/srgn/blob/0008cce1c71f0d83f6a31...
- srgn: precise text and code transplantation; think tr/sed + regex + tree-sitter
-
AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting
Wow! What a coincidence. Just the other day I finished "v1" of a similar tool: https://github.com/alexpovel/srgn , calling it a combination of tr/sed, ripgrep and tree-sitter.
I've spent a lot of time trying to find similar tools, and even list them in the README, but `AST-grep` did not come up! I was a bit confused, as I was sure such a thing must exist already. AST-grep looks much more capable and dynamic, great work.
syntax-searcher
-
AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting
Most other repositories print all results pretty much instantly.
[1] https://github.com/jgke/syntax-searcher
What are some alternatives?
lsd - LSD - line-square-dot: an addicting game
ssr.nvim - Treesitter based structural search and replace plugin for Neovim.
oatmeal - Terminal UI to chat with large language models (LLM) using different model backends, and integrations with your favourite editors!
pfff - Tools for code analysis, visualizations, or style-preserving source transformation.
clipzoomfx - Side-project for extracting highlights from (mostly sports) videos
diffsitter - A tree-sitter based AST difftool to get meaningful semantic diffs
dhcptool - Tool for testing/debugging DHCP servers
ruff - An extremely fast Python linter and code formatter, written in Rust.
webpub - Give me a website, I'll make you an epub.
ast-grep - ⚡A CLI tool for code structural search, lint and rewriting. Written in Rust
game-server-watcher - A simple discord/telegram/slack bot that can be hosted on a free service to monitor your game servers and players in style 😎
cgrep - cgrep is an npm package for writing project checks with regex.