trdeltree 0.20.15

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global trdeltree --version 0.20.15
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local trdeltree --version 0.20.15
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=trdeltree&version=0.20.15
                    
nuke :add-package trdeltree --version 0.20.15
                    

Deletes nodes in a parse tree.
This program is part of the Trash toolkit.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.22.0 301 2/26/2024
0.21.16 297 11/16/2023
0.21.15 179 11/16/2023
0.21.14 209 11/15/2023
0.21.13 180 11/14/2023
0.21.12 312 10/27/2023
0.21.11 325 10/24/2023
0.21.9 319 9/27/2023
0.21.8 342 9/26/2023
0.21.7 365 9/26/2023
0.21.6 243 9/20/2023
0.21.5 206 9/18/2023
0.21.4 245 9/17/2023
0.21.3 319 9/14/2023
0.21.2 343 9/4/2023
0.21.1 364 8/15/2023
0.21.0 267 6/25/2023
0.20.27 297 6/15/2023
0.20.26 259 6/5/2023
0.20.25 222 6/3/2023
0.20.24 274 6/1/2023
0.20.23 256 5/31/2023
0.20.22 305 5/21/2023
0.20.21 281 5/15/2023
0.20.20 320 5/11/2023
0.20.19 298 5/8/2023
0.20.18 275 5/8/2023
0.20.17 336 5/4/2023
0.20.16 316 5/1/2023
0.20.15 292 4/27/2023
0.20.14 288 4/21/2023
0.20.13 345 4/13/2023
0.20.12 398 3/17/2023
0.20.11 394 3/15/2023
0.20.10 361 3/15/2023
0.20.9 318 3/14/2023
0.20.8 419 3/14/2023
0.20.7 385 3/13/2023
0.20.6 393 3/11/2023
0.20.5 413 3/11/2023
0.20.4 405 3/9/2023
0.20.3 393 3/8/2023
0.20.2 399 3/7/2023
0.20.1 383 3/7/2023
0.20.0 395 2/22/2023
0.19.3 416 2/19/2023
0.19.2 461 2/2/2023
0.19.1 477 1/28/2023
0.19.0 516 1/15/2023
0.19.0-alpha7 374 1/15/2023
0.19.0-alpha6 385 1/14/2023
0.19.0-alpha5 383 1/12/2023
0.19.0-alpha4 409 1/11/2023

# trdeltree
## Summary
Delete an entire subtree of a parse tree
## Description
Reads a parse tree from stdin, and given an XPath expression
for the nodes in the parse tree, delete the nodes and all children
recursively. Writes the modified tree
to stdout. The input and output are Parse Tree Data.
## Usage
trdeltree <string>
## Example
Before:
grammar Expression;
e : e ('*' | '/') e
| e ('+' | '-') e
| '(' e ')'
| ('-' | '+')* a
;
a : INT ;
INT : ('0' .. '9')+ ;
MUL : '*' ;
DIV : '/' ;
ADD : '+' ;
SUB : '-' ;
LP : '(' ;
RP : ')' ;
WS : [ \r\n\t] + -> skip ;
Command:
trparse Expression.g4 | trdelete "//parserRuleSpec[RULE_REF/text() = 'a']" | trprint
After:
grammar Expression;
e : e ('*' | '/') e
| e ('+' | '-') e
| '(' e ')'
| ('-' | '+')* a
;
a : INT ;
INT : ('0' .. '9')+ ;
MUL : '*' ;
DIV : '/' ;
ADD : '+' ;
SUB : '-' ;
LP : '(' ;
RP : ')' ;
WS : [ \r\n\t] + -> skip ;
## 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.20.15 Add performance testing to templates. Add -force option to trgen to generate a target. Dotnet 7.0 dependency; desc.xml replacement for pom.xml. Add trfoldlit. NB: not all Trash tools supported yet.