trash 4.7.0
See the version list below for details.
dotnet tool install --global trash --version 4.7.0
dotnet new tool-manifest
dotnet tool install --local trash --version 4.7.0
#tool dotnet:?package=trash&version=4.7.0
nuke :add-package trash --version 4.7.0
Release 4.7.0.
trash
trash is the unified dispatcher for the Trash toolkit —
a collection of parse-tree manipulation tools built on ANTLR4.
Install Globally
dotnet tool install -g trash
Uninstall
dotnet tool uninstall -g trash
Install Locally
dotnet new tool-manifest
dotnet tool install trash
Usage
trash <command> [options]
Both the full command name and a short alias (without the tr prefix) are accepted:
dotnet trash gen --help
dotnet trash parse --help
Example pipeline
dotnet trash parse -g antlr4 MyGrammar.g4 | dotnet trash tree --text
Commands
| Full name | Alias |
|---|---|
| tranalyze | analyze |
| trcaret | caret |
| trclonereplace | clonereplace |
| trcombine | combine |
| trconvert | convert |
| trcover | cover |
| trdot | dot |
| trextract | extract |
| trff | ff |
| trfoldlit | foldlit |
| trgen | gen |
| trgenvsc | genvsc |
| trglob | glob |
| triconv | iconv |
| trinterp | interp |
| tritext | itext |
| trjson | json |
| trnullable | nullable |
| trparse | parse |
| trperf | perf |
| trquery | query |
| trrename | rename |
| trsort | sort |
| trsplit | split |
| trsponge | sponge |
| trtext | text |
| trtokens | tokens |
| trtree | tree |
| trunfold | unfold |
| trunfoldlit | unfoldlit |
| trwdog | wdog |
| trxpath | xpath |
| trxml | xml |
| trxml2 | xml2 |
| trxquery | xquery |
Run trash --help to list all commands. Run trash <command> --help for per-command help.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.0 | 910 | 11/27/2026 |
| 5.0.0 | 1,309 | 11/21/2026 |
| 4.12.0 | 121 | 11/16/2026 |
| 4.11.0 | 122 | 11/14/2026 |
| 4.10.0 | 1,303 | 11/10/2026 |
| 4.9.0 | 115 | 11/8/2026 |
| 4.8.0 | 3,611 | 10/26/2026 |
| 4.7.0 | 4,140 | 10/22/2026 |
| 4.6.0 | 535 | 10/21/2026 |
| 4.5.0 | 113 | 10/19/2026 |
| 4.4.0 | 123 | 10/17/2026 |
| 4.3.0 | 401 | 10/12/2026 |
| 4.2.0 | 112 | 10/10/2026 |
| 4.1.0 | 142 | 10/7/2026 |
| 4.0.0 | 162 | 9/30/2026 |
| 3.7.0 | 158 | 9/26/2026 |
| 3.6.0 | 4,405 | 9/19/2026 |
| 3.5.0 | 185 | 9/13/2026 |
| 3.4.0 | 222 | 9/9/2026 |
| 3.3.0 | 253 | 9/6/2026 |
Release 4.7.0.
# trash
`trash` is the unified dispatcher for the [Trash toolkit](https://github.com/kaby76/Trash) —
a collection of parse-tree manipulation tools built on ANTLR4.
## Install Globally
dotnet tool install -g trash
## Uninstall
dotnet tool uninstall -g trash
## Install Locally
dotnet new tool-manifest
dotnet tool install trash
## Usage
trash <command> [options]
Both the full command name and a short alias (without the `tr` prefix) are accepted:
dotnet trash gen --help
dotnet trash parse --help
## Example pipeline
dotnet trash parse -g antlr4 MyGrammar.g4 | dotnet trash tree --text
## Commands
| Full name | Alias |
|----------------|-------------|
| tranalyze | analyze |
| trcaret | caret |
| trclonereplace | clonereplace|
| trcombine | combine |
| trconvert | convert |
| trcover | cover |
| trdot | dot |
| trextract | extract |
| trff | ff |
| trfoldlit | foldlit |
| trgen | gen |
| trgenvsc | genvsc |
| trglob | glob |
| triconv | iconv |
| trinterp | interp |
| tritext | itext |
| trjson | json |
| trnullable | nullable |
| trparse | parse |
| trperf | perf |
| trquery | query |
| trrename | rename |
| trsort | sort |
| trsplit | split |
| trsponge | sponge |
| trtext | text |
| trtokens | tokens |
| trtree | tree |
| trunfold | unfold |
| trunfoldlit | unfoldlit |
| trwdog | wdog |
| trxpath | xpath |
| trxml | xml |
| trxml2 | xml2 |
| trxquery | xquery |
Run `trash --help` to list all commands. Run `trash <command> --help` for per-command help.