textproc/ast-grep 0.51.0 FreeBSD
CLI tool for code structural search, lint and rewriting
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
6787630e00- License
- MIT
- Categories
- textproc, devel
- Package size
- 5090.5 KiB, 49272.4 KiB installed
Description
ast-grep is an abstract syntax tree based tool to search code by pattern code. Think of it as your old-friend grep, but matching 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 a wildcard, e.g. $MATCH, to match any single AST node. Think of it as regular expression dot ., except it is not textual.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/ast-grep | 0.51.0 |
| NetBSD | devel/ast-grep | 0.45.3 |
Install
Binary package:
pkg install ast-grep
From the ports tree:
cd /usr/ports/textproc/ast-grep/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ast-grep>0:textproc/ast-grep
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.45.3_1 | 0.50.0_1 | - | - | 0.51.0 |
| FreeBSD:14:quarterly | 0.45.3_1 | 0.45.3_1 | n/a | - | 0.45.3_1 |
| FreeBSD:15:latest | 0.50.0_1 | 0.51.0 | n/a | - | - |
| FreeBSD:15:quarterly | 0.45.3_1 | 0.45.3_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.45.3_1 | 0.51.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 11
No port depends on this one.
Configuration
Options name: textproc_ast-grep
| Option | Default | Description |
|---|---|---|
| COMPLETIONS | on | |
| DOCS | off | Build and/or install documentation |
- USES
- cargo
- Service scripts
- none
Files
distinfo 288
| File | Size | SHA256 |
|---|---|---|
| rust/crates/Inflector-0.11.4.crate | 17438 | fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3 |
| rust/crates/aho-corasick-1.1.5.crate | 184315 | c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba |
| rust/crates/annotate-snippets-0.12.16.crate | 56108 | f211a51805bc641f3ad5b7664c77d2547af685cc33b4cd8d31964027a46f13f1 |
| rust/crates/ansi_term-0.12.1.crate | 24838 | d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2 |
| rust/crates/anstream-1.0.0.crate | 28916 | 824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d |
| rust/crates/anstyle-1.0.14.crate | 17787 | 940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000 |
| rust/crates/anstyle-parse-1.0.0.crate | 22042 | 52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e |
| rust/crates/anstyle-query-1.1.5.crate | 10264 | 40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc |
| rust/crates/anstyle-wincon-3.0.11.crate | 12638 | 291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d |
| rust/crates/anyhow-1.0.104.crate | 48819 | 330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470 |
| rust/crates/arraydeque-0.5.1.crate | 17671 | 7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236 |
| rust/crates/assert_cmd-2.2.2.crate | 27683 | 2aa3a22042e45de04255c7bf3626e239f450200fd0493c1e382263544b20aea6 |
| rust/crates/async-trait-0.1.92.crate | 32039 | 82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667 |
| rust/crates/autocfg-1.5.1.crate | 18911 | f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53 |
| rust/crates/base64-0.23.1.crate | 93605 | ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5 |
| rust/crates/bit-set-0.11.1.crate | 19997 | 56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c |
| rust/crates/bit-vec-0.10.1.crate | 30095 | 5727b15fa97d4f4fee0a3b7c3d550ed0269f54329207b86388de918604e31269 |
| rust/crates/bitflags-2.13.1.crate | 51395 | b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da |
| rust/crates/borrow-or-share-0.2.4.crate | 5243 | dc0b364ead1874514c8c2855ab558056ebfeb775653e7ae45ff72f28f8f3166c |
| rust/crates/borsh-1.8.0.crate | 84983 | a88b7ea17d208c4193f2c1e6de3c35fe71f98c96982d5ced308bdcc749ff6e1f |
Commit history 10
The latest 5 of 10 in the history this site was built from.