Skip to content

Commit

Permalink
Bump. Update templates for diagnostics.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaby76 committed Aug 20, 2023
1 parent e3ef0f5 commit 863a231
Show file tree
Hide file tree
Showing 116 changed files with 477 additions and 137 deletions.
4 changes: 2 additions & 2 deletions _scripts/bumpbase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
version_framework="net7.0"
version_base="4.5.0"
version_tree="5.2.0"
version_antlr4buildtasks="12.0"
version_antlr4buildtasks="12.20"
version_stringtemplate="4.2.0"
version_antlrruntime="4.11.1"
version_antlrruntime="4.13.0"

files=`find . -name '*.csproj'`
subset=`grep -l -e Antlr4.Runtime.Standard $files`
Expand Down
2 changes: 1 addition & 1 deletion _scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/bash
version=0.21.0
version=0.21.1
cd src
exes=`find . -name 'tr*.exe' | grep -v publish`
for i in $exes
Expand Down
2 changes: 1 addition & 1 deletion src/tragl/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ This tool is part of Trash, Transformations for Antlr Shell.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/tragl/tragl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/tragl</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/tranalyze/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ _Output_

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/tranalyze/tranalyze.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/tranalyze</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trcaret/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Reads a tree from stdin and prints lines and caret marks.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trcaret/trcaret.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This program is part of the Trash toolkit.
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trcaret</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trcombine/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ The original grammars are left unchanged.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trcombine/trcombine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trcombine</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trconvert/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ _Output_

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trconvert/trconvert.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ syntax. This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trconvert</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trcover/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ a grammar.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trcover/trcover.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ for the entire grammar. This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trcover</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trdelabel/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ Remove all labels from an Antlr4 grammar.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trdelabel/trdelabel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trdelabel</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trdelete/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ XPaths, type _export MSYS2_ARG_CONV_EXCL="*"_, then execute your command.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trdelete/trdelete.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trdelete</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trdeltree/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ XPaths, type _export MSYS2_ARG_CONV_EXCL="*"_, then execute your command.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trdeltree/trdeltree.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trdeltree</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trdot/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ The output will be:

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trdot/trdot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This program is part of the Trash toolkit.
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trdot</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trenum/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trenum/trenum.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This program is part of the Trash toolkit.
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trull</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trfirst/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ XPaths, type _export MSYS2_ARG_CONV_EXCL="*"_, then execute your command.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trfirst/trfirst.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trfirst</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trfold/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ XPaths, type _export MSYS2_ARG_CONV_EXCL="*"_, then execute your command.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trfold/trfold.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trfold</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trfoldlit/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ XPaths, type _export MSYS2_ARG_CONV_EXCL="*"_, then execute your command.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trfoldlit/trfoldlit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trfoldlit</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trformat/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ Format of grammar using machine learning.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
2 changes: 1 addition & 1 deletion src/trformat/trformat.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This program is part of the Trash toolkit.]]>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>0.21.1</Version>
<Version>0.21.2</Version>
<RepositoryUrl>https://github.com/kaby76/Domemtech.Trash/tree/main/src/trformat</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trgen/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ private void ModifyWithGrammarParse(Config config)
}
}

public static string version = "0.21.1";
public static string version = "0.21.2";

// For maven-generated code.
public List<string> failed_modules = new List<string>();
Expand Down
2 changes: 1 addition & 1 deletion src/trgen/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ create a parser for the Arithmetic.g4 grammar.

## Current version

0.21.1 Fixes to trgen for Cpp target. Update run.sh in templates.
0.21.2 Fix to trconvert for Bison. Add trquery. Fixes to trperf, trparse.
26 changes: 22 additions & 4 deletions src/trgen/templates/Antlr4cs/st.test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Generated from trgen <version>

# comment for local dotnet tools.
global=1

# People often specify a test file directory, but sometimes no
# tests are provided. Git won't check in an empty directory.
# Test if the test file directory does not exist, or it is just
Expand All @@ -24,7 +27,12 @@ files2=`find ../<example_files_unix> -type f | grep -v '.errors$' | grep -v '.tr
files=()
for f in $files2
do
triconv -f utf-8 $f > /dev/null 2>&1
if [ "$global" == "" ]
then
dotnet triconv -- -f utf-8 $f > /dev/null 2>&1
else
triconv -f utf-8 $f > /dev/null 2>&1
fi
if [ "$?" = "0" ]
then
files+=( $f )
Expand All @@ -37,7 +45,12 @@ done
rm -f parse.txt
for f in ${files[*]}
do
trwdog ./bin/Debug/net7.0/<if(os_win)>Test.exe<else>Test<endif> -q -tee -tree $f >> parse.txt 2>&1
if [ "$global" == "" ]
then
dotnet trwdog -- ./bin/Debug/net7.0/<if(os_win)>Test.exe<else>Test<endif> -q -tee -tree $f >> parse.txt 2>&1
else
trwdog ./bin/Debug/net7.0/<if(os_win)>Test.exe<else>Test<endif> -q -tee -tree $f >> parse.txt 2>&1
fi
xxx="$?"
if [ "$xxx" -ne 0 ]
then
Expand All @@ -46,8 +59,13 @@ do
done
<else>
# Group parsing.
echo "${files[*]}" | trwdog ./bin/Debug/net7.0/<if(os_win)>Test.exe<else>Test<endif> -q -x -tee -tree > parse.txt 2>&1
status=$?
if [ "$global" == "" ]
then
echo "${files[*]}" | dotnet trwdog -- ./bin/Debug/net7.0/<if(os_win)>Test.exe<else>Test<endif> -q -x -tee -tree > parse.txt 2>&1
else
echo "${files[*]}" | trwdog ./bin/Debug/net7.0/<if(os_win)>Test.exe<else>Test<endif> -q -x -tee -tree > parse.txt 2>&1
fi
status="$?"
<endif>

# trwdog returns 255 if it cannot spawn the process. This could happen
Expand Down
Loading

0 comments on commit 863a231

Please sign in to comment.