trull 0.13.5
See the version list below for details.
dotnet tool install --global trull --version 0.13.5
dotnet new tool-manifest
dotnet tool install --local trull --version 0.13.5
#tool dotnet:?package=trull&version=0.13.5
nuke :add-package trull --version 0.13.5
Apply the upper- and lowercase transform to a grammar.
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.18.1 | 588 | 11/11/2022 |
0.18.0 | 481 | 11/7/2022 |
0.17.0 | 528 | 9/11/2022 |
0.16.5 | 545 | 7/29/2022 |
0.16.4 | 577 | 6/13/2022 |
0.16.3 | 579 | 5/7/2022 |
0.16.2 | 588 | 5/6/2022 |
0.16.1 | 546 | 5/5/2022 |
0.16.0 | 562 | 4/13/2022 |
0.15.1 | 566 | 4/4/2022 |
0.15.0 | 542 | 3/20/2022 |
0.14.3 | 612 | 2/27/2022 |
0.14.2 | 575 | 2/18/2022 |
0.14.1 | 598 | 1/26/2022 |
0.14.0 | 557 | 1/26/2022 |
0.13.8 | 590 | 1/14/2022 |
0.13.7 | 581 | 1/13/2022 |
0.13.6 | 532 | 1/13/2022 |
0.13.5 | 543 | 1/12/2022 |
0.13.4 | 374 | 1/11/2022 |
0.13.3 | 401 | 1/10/2022 |
0.13.2 | 374 | 12/24/2021 |
0.13.1 | 370 | 12/24/2021 |
0.13.0 | 379 | 12/23/2021 |
0.12.0 | 472 | 12/6/2021 |
# Trull
The ulliteral command applies the upper- and lowercase string literal transform
to a collection of terminal nodes in the parse tree, which is identified with the supplied
xpath expression. If the xpath expression is not given, the transform is applied to the
whole file.
# Usage
trull <xpath>?
# Examples
Before:
grammar KeywordFun;
a : 'abc';
b : 'def';
A : 'abc';
B : 'def';
C : 'uvw' 'xyz'?;
D : 'uvw' 'xyz'+;
Command:
trparse KeywordFun.g4 | trull "//lexerRuleSpec[TOKEN_REF/text() = 'A']//STRING_LITERAL" | trprint
After:
grammar KeywordFun;
a : 'abc';
b : 'def';
A : [aA] [bB] [cC];
B : 'def';
C : 'uvw' 'xyz'?;
D : 'uvw' 'xyz'+;
Command:
trparse KeywordFun.g4 | trull | trprint
After:
grammar KeywordFun;
a : 'abc';
b : 'def';
A : [aA] [bB] [cC];
B : [dD] [eE] [fF];
C : [uU] [vV] [wW] ( [xX] [yY] [zZ] )?;
D : [uU] [vV] [wW] ( [xX] [yY] [zZ] )+;
# 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.5 -- updates to trgen for Go.