ast-grep(sg) is a CLI tool for code structural search, lint, and rewriting. ast-grep is a AST-based tool to search code by pattern code. Think it as your old-friend grep but it matches AST nodes instead of text. You can write patterns as if you are writing ordinary code. It will match all code that has the same syntactical structure. You can use $ sign + upper case letters as wildcard, e.g. $MATCH, to match any single AST node. Think it as REGEX dot ., except it is not textual.
OS | Architecture | Version |
---|---|---|
NetBSD 10.0 | aarch64 | ast-grep-0.27.3.tgz |
NetBSD 10.0 | aarch64 | ast-grep-0.24.0.tgz |
NetBSD 10.0 | earmv7hf | ast-grep-0.27.3.tgz |
NetBSD 10.0 | earmv7hf | ast-grep-0.20.0.tgz |
NetBSD 10.0 | earmv7hf | ast-grep-0.24.0.tgz |
NetBSD 10.0 | i386 | ast-grep-0.27.3.tgz |
NetBSD 10.0 | i386 | ast-grep-0.24.0.tgz |
NetBSD 10.0 | powerpc | ast-grep-0.20.0.tgz |
NetBSD 10.0 | sparc64 | ast-grep-0.24.0.tgz |
NetBSD 10.0 | x86_64 | ast-grep-0.27.3.tgz |
NetBSD 10.0 | x86_64 | ast-grep-0.24.0.tgz |
NetBSD 9.0 | earmv7hf | ast-grep-0.20.0.tgz |
NetBSD 9.0 | earmv7hf | ast-grep-0.24.0.tgz |
NetBSD 9.0 | i386 | ast-grep-0.27.3.tgz |
NetBSD 9.0 | i386 | ast-grep-0.24.0.tgz |
NetBSD 9.0 | powerpc | ast-grep-0.20.0.tgz |
NetBSD 9.0 | x86_64 | ast-grep-0.27.3.tgz |
NetBSD 9.0 | x86_64 | ast-grep-0.24.0.tgz |
NetBSD 9.3 | x86_64 | ast-grep-0.27.3.tgz |
Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.
The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.
Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.
Problem reports, updates or suggestions for this package should be reported with send-pr.