trdot 0.16.3
See the version list below for details.
dotnet tool install --global trdot --version 0.16.3
dotnet new tool-manifest
dotnet tool install --local trdot --version 0.16.3
#tool dotnet:?package=trdot&version=0.16.3
nuke :add-package trdot --version 0.16.3
Reads a tree from stdin and prints the tree as a Dot graph.
This program is part of the Trash toolkit.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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.23.28 | 181 | 12/4/2025 |
| 0.23.27 | 189 | 10/30/2025 |
| 0.23.26 | 183 | 8/17/2025 |
| 0.23.25 | 191 | 8/9/2025 |
| 0.23.24 | 208 | 7/15/2025 |
| 0.23.23 | 203 | 7/6/2025 |
| 0.23.22 | 169 | 6/27/2025 |
| 0.23.21 | 143 | 6/6/2025 |
| 0.23.20 | 215 | 6/4/2025 |
| 0.23.19 | 206 | 6/4/2025 |
| 0.23.18 | 313 | 5/13/2025 |
| 0.23.17 | 292 | 3/7/2025 |
| 0.23.16 | 301 | 3/4/2025 |
| 0.23.15 | 191 | 2/25/2025 |
| 0.23.14 | 188 | 2/9/2025 |
| 0.23.13 | 175 | 1/19/2025 |
| 0.23.12 | 174 | 1/16/2025 |
| 0.23.11 | 192 | 12/18/2024 |
| 0.23.10 | 195 | 12/12/2024 |
| 0.23.9 | 185 | 11/29/2024 |
| 0.23.8 | 195 | 11/1/2024 |
| 0.23.7 | 218 | 10/9/2024 |
| 0.23.6 | 220 | 9/21/2024 |
| 0.23.5 | 203 | 9/15/2024 |
| 0.23.4 | 192 | 9/7/2024 |
| 0.23.3 | 214 | 8/15/2024 |
| 0.23.2 | 189 | 6/28/2024 |
| 0.23.1 | 214 | 6/22/2024 |
| 0.23.0 | 214 | 4/25/2024 |
| 0.22.0 | 275 | 2/26/2024 |
| 0.18.1 | 735 | 11/11/2022 |
| 0.18.0 | 576 | 11/7/2022 |
| 0.17.0 | 654 | 9/11/2022 |
| 0.16.5 | 658 | 7/29/2022 |
| 0.16.4 | 692 | 6/13/2022 |
| 0.16.3 | 690 | 5/7/2022 |
| 0.16.2 | 642 | 5/6/2022 |
| 0.16.1 | 701 | 5/5/2022 |
| 0.16.0 | 759 | 4/13/2022 |
| 0.15.1 | 714 | 4/4/2022 |
| 0.15.0 | 744 | 3/20/2022 |
| 0.14.3 | 690 | 2/27/2022 |
| 0.14.2 | 694 | 2/18/2022 |
| 0.14.1 | 712 | 1/26/2022 |
| 0.14.0 | 735 | 1/26/2022 |
| 0.13.8 | 693 | 1/14/2022 |
| 0.13.7 | 730 | 1/13/2022 |
| 0.13.6 | 676 | 1/13/2022 |
| 0.13.5 | 740 | 1/12/2022 |
| 0.13.4 | 681 | 1/11/2022 |
| 0.13.3 | 724 | 1/10/2022 |
| 0.13.2 | 507 | 12/24/2021 |
| 0.13.1 | 506 | 12/24/2021 |
| 0.13.0 | 500 | 12/23/2021 |
| 0.12.0 | 499 | 12/6/2021 |
| 0.11.5 | 645 | 10/17/2021 |
| 0.11.4 | 550 | 10/17/2021 |
| 0.11.3 | 553 | 9/28/2021 |
| 0.11.2 | 565 | 9/26/2021 |
| 0.11.1 | 618 | 9/25/2021 |
| 0.11.0 | 600 | 9/24/2021 |
| 0.10.0 | 568 | 9/9/2021 |
| 0.8.9 | 562 | 8/13/2021 |
| 0.8.8 | 567 | 8/5/2021 |
| 0.8.7 | 525 | 7/20/2021 |
| 0.8.6 | 610 | 7/13/2021 |
| 0.8.5 | 592 | 7/6/2021 |
# trdot
Reads a tree from stdin and prints the tree as a Dot graph.
# Usage
trdot
# Details
`trdot` reads parse tree data via stdin and outputs
a Dot graph specification. The stdout can be redirected to
save the output to a file. Or, you can copy the output and
use an online Dot graph visualizer to make a plot.
Any parse tree data can be converted to Dot, include a
parse of a grammar, the parse tree of a simple expression grammar,
or a list of parse tree nodes obtained via
[trxgrep](https://github.com/kaby76/Domemtech.Trash/tree/main/trxgrep).
# Examples
Consider the Expression grammar, obtained via
mkdir foo; cd foo; trgen; cd Generated; dotnet build
Let's parse the expression "1+2" and print the parse tree as a Dot graph:
trparse -i "1+2" | trdot
The output will be:
digraph G {
Node18643596 [label="file_"];
Node33574638 [label="expression"];
Node33736294 [label="expression"];
Node35191196 [label="atom"];
Node48285313 [label="scientific"];
Node31914638 [label="1"];
Node18796293 [label="+"];
Node34948909 [label="expression"];
Node46104728 [label="atom"];
Node12289376 [label="scientific"];
Node43495525 [label="2"];
Node55915408 [label="EOF"];
Node18643596 -> Node33574638;
Node18643596 -> Node55915408;
Node33574638 -> Node33736294;
Node33574638 -> Node18796293;
Node33574638 -> Node34948909;
Node34948909 -> Node46104728;
Node46104728 -> Node12289376;
Node12289376 -> Node43495525;
Node33736294 -> Node35191196;
Node35191196 -> Node48285313;
Node48285313 -> Node31914638;
}
# Current version
0.16.3 -- Fix to trgen and Cpp target.