trreplace 0.13.2
See the version list below for details.
dotnet tool install --global trreplace --version 0.13.2
dotnet new tool-manifest
dotnet tool install --local trreplace --version 0.13.2
#tool dotnet:?package=trreplace&version=0.13.2
nuke :add-package trreplace --version 0.13.2
Replaces nodes with arbitrary text in a parse tree.
This program is part of the Trash toolkit.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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 |
|---|---|---|
| 0.22.0 | 418 | 2/26/2024 |
| 0.21.16 | 357 | 11/16/2023 |
| 0.21.15 | 289 | 11/16/2023 |
| 0.21.14 | 229 | 11/15/2023 |
| 0.21.13 | 233 | 11/14/2023 |
| 0.21.12 | 387 | 10/27/2023 |
| 0.21.11 | 355 | 10/24/2023 |
| 0.21.9 | 314 | 9/27/2023 |
| 0.21.8 | 340 | 9/26/2023 |
| 0.21.7 | 366 | 9/26/2023 |
| 0.21.6 | 379 | 9/20/2023 |
| 0.21.5 | 321 | 9/18/2023 |
| 0.21.4 | 302 | 9/17/2023 |
| 0.21.3 | 328 | 9/14/2023 |
| 0.21.2 | 358 | 9/4/2023 |
| 0.21.1 | 418 | 8/15/2023 |
| 0.21.0 | 381 | 6/25/2023 |
| 0.20.27 | 305 | 6/15/2023 |
| 0.20.26 | 331 | 6/5/2023 |
| 0.13.2 | 518 | 12/24/2021 |
# trreplace
Reads a parse tree from stdin, replaces nodes with text using
the specified XPath expression, and writes the modified tree
to stdout. The input and output are Parse Tree Data.
# Usage
trreplace <xpath-string> <text-string>
# Example
trparse Java.g4 | trreplace "//parserRuleSpec[RULE_REF/text() = 'normalAnnotation']" "nnn" | trtree | vim -
# Notes
If you are running MSYS2 on Windows, you may notice that XPaths are not being
processed by this command correctly. To avoid the Bash shell from altering
XPaths, type _export MSYS2_ARG_CONV_EXCL="*"_, then execute your command.
# Current version
0.13.2 -- fix trgen double negative.