devel/ast-grep 0.45.3 NetBSD
CLI tool for code structural search, lint, and rewriting
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
3ef167e305- License
- mit
- Categories
- devel
- Package size
- 5020.2 KiB, 49413.0 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | devel/ast-grep | 0.45.3 |
| FreeBSD | textproc/ast-grep | 0.51.0 |
| HardenedBSD | textproc/ast-grep | 0.45.3_1 |
| GhostBSD | textproc/ast-grep | 0.45.3_1 |
Install
Binary package:
pkgin install ast-grep
From pkgsrc:
cd /usr/pkgsrc/devel/ast-grep && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.45.3 |
| NetBSD 10.1 aarch64 | 0.43.0 |
| SmartOS / illumos x86_64 | - |
| macOS 15 arm64 | 0.51.0 |
Dependencies
No port depends on this one.
Commit history 7
The latest 5 of 7 in the history this site was built from.