trparse 0.19.0-alpha1
See the version list below for details.
dotnet tool install --global trparse --version 0.19.0-alpha1
dotnet new tool-manifest
dotnet tool install --local trparse --version 0.19.0-alpha1
#tool dotnet:?package=trparse&version=0.19.0-alpha1&prerelease
nuke :add-package trparse --version 0.19.0-alpha1
Parses a file, arg, or stdin using a built-in or generated parser.
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.43 | 3,410 | 3/28/2026 |
| 0.23.42 | 2,198 | 2/21/2026 |
| 0.23.41 | 4,592 | 1/25/2026 |
| 0.23.40 | 132 | 1/25/2026 |
| 0.23.39 | 346 | 1/22/2026 |
| 0.23.38 | 128 | 1/21/2026 |
| 0.23.37 | 129 | 1/20/2026 |
| 0.23.36 | 150 | 1/18/2026 |
| 0.23.35 | 120 | 1/16/2026 |
| 0.23.34 | 202 | 1/6/2026 |
| 0.23.33 | 224 | 12/28/2025 |
| 0.23.32 | 255 | 12/22/2025 |
| 0.23.31 | 408 | 12/19/2025 |
| 0.23.30 | 344 | 12/17/2025 |
| 0.23.29 | 315 | 12/17/2025 |
| 0.23.28 | 2,202 | 12/4/2025 |
| 0.23.27 | 2,886 | 10/30/2025 |
| 0.23.26 | 4,113 | 8/17/2025 |
| 0.23.25 | 360 | 8/9/2025 |
| 0.19.0-alpha1 | 552 | 1/3/2023 |
# trparse
## Summary
Parse a grammar or use generated parse to parse input
## Description
Parse files and output to stdout parse tree data.
The tool requires a pre-built parser via trgen for a grammar
for anything other than the standard parser grammars that
are supported. To specify the grammar, you can either
be in a trgen-generated parser directory, or use the -p option.
If using positional args on the command line, a file is parse
depending on the extension of the file name:
* `.g2` for an Antlr2
* `.g3` for an Antlr3
* `.g4` for an Antlr4
* `.y` for a Bison
* `.ebnf` for ISO EBNF
You can force the type of parse with
the `--type` command-line option:
* `antlr2` for Antlr2
* `antlr3` for Antlr3
* `antlr4` for Antlr4
* `bison` for Bison
* `ebnf` for ISO EBNF
* `gen` for the `Generated/` parser
## Usage
trparse (<string> | <options>)*
-i, --input Parse the given string as input.
-t, --type Specifies type of parse, antlr4, antlr3, antlr2, bison, ebnf, gen
-s, --start-rule Start rule name.
-p, --parser Location of pre-built parser (aka the trgen Generated/ directory)
## Examples
trparse Java.g2
trparse -i "1+2+3"
trparse Foobar.g -t antlr2
echo "1+2+3" | trparse | trtree
mkdir out; trparse MyParser.g4 MyLexer.g4 | trkleene | trsponge -o out
## Current version
0.19.0-alpha1 Complete rewrite of parse tree representation.