Skip to content

Commit

Permalink
Merge pull request #481 from kaby76/main
Browse files Browse the repository at this point in the history
From main (was checked into main by accident)
  • Loading branch information
kaby76 authored Aug 27, 2024
2 parents 97cecfd + 195de06 commit 7e78fef
Show file tree
Hide file tree
Showing 933 changed files with 138 additions and 210,183 deletions.
6 changes: 3 additions & 3 deletions _scripts/set-version.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/bash
version="0.23.3"
version="0.23.4"
cd src
directories=`find . -maxdepth 1 -type d -name "tr*"`
cwd=`pwd`
Expand Down Expand Up @@ -41,7 +41,7 @@ do
mv asdfasdf *.csproj
rm -f asdfasdf2
touch readme.md
cat readme.md | sed -e 's%^0[.][0-9]*[.][0-9]*.*$'"%$version"' Code clean up, improvements to tritext, added trsort, trclonerename.%' > asdfasdf2
cat readme.md | sed -e 's%^0[.][0-9]*[.][0-9]*.*$'"%$version"' Clean up build of trgenvsc.%' > asdfasdf2
mv asdfasdf2 readme.md
cd ..
done
Expand Down Expand Up @@ -78,7 +78,7 @@ do
mv asdfasdf *.csproj
rm -f asdfasdf2
touch readme.md
cat readme.md | sed -e 's%^0[.][0-9]*[.][0-9]*.*$'"%$version"' Code clean up, improvements to tritext, added trsort, trclonerename.%' > asdfasdf2
cat readme.md | sed -e 's%^0[.][0-9]*[.][0-9]*.*$'"%$version"' Clean up build of trgenvsc.%' > asdfasdf2
mv asdfasdf2 readme.md
cd ..
done
Expand Down
2 changes: 1 addition & 1 deletion _tests/TestProject1/TestProject1.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
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,7 +19,7 @@ This tool is part of Trash, Transformations for Antlr Shell.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/tragl/tragl.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.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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,7 +65,7 @@ _Output_

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/tranalyze/tranalyze.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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,7 +18,7 @@ Reads a tree from stdin and prints lines and caret marks.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trcaret/trcaret.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.
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/Trash/tree/main/src/trcaret</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/trclonereplace/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Clone, rename, and replace symbols in a grammar to optimize full stack fallbacks

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trclonereplace/trclonereplace.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/Trash/tree/main/src/trclonereplace</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,7 +103,7 @@ The original grammars are left unchanged.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trcombine/trcombine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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,7 +93,7 @@ _Output_

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trconvert/trconvert.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ syntax. This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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,7 +24,7 @@ a grammar.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trcover/trcover.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ for the entire grammar. This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/Trash/tree/main/src/trcover</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,7 +63,7 @@ The output will be:

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trdot/trdot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This program is part of the Trash toolkit.
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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,7 +8,7 @@

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trenum/trenum.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This program is part of the Trash toolkit.
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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,7 +24,7 @@ XPaths, type _export MSYS2_ARG_CONV_EXCL="*"_, then execute your command.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trfirst/trfirst.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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,7 +26,7 @@ XPaths, type _export MSYS2_ARG_CONV_EXCL="*"_, then execute your command.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trfold/trfold.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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,7 +65,7 @@ XPaths, type _export MSYS2_ARG_CONV_EXCL="*"_, then execute your command.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trfoldlit/trfoldlit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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,7 +18,7 @@ Format of grammar using machine learning.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trformat/trformat.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/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 @@ -541,7 +541,7 @@ private void ModifyWithGrammarParse(Config config)
}
}

public static string version = "0.23.3";
public static string version = "0.23.4";

// For maven-generated code.
public List<string> failed_modules = new List<string>();
Expand Down
3 changes: 3 additions & 0 deletions src/trgen/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public class Config
[Option('g', "grammar-name", Required = false, HelpText = "Grammar for parse.")]
public string grammar_name { get; set; }

[Option('i', "ignore", Required = false, Separator = ',', HelpText = "Ignored files or directories for generating app.")]
public IEnumerable<string> ignore { get; set; } = new List<string>();

[Option('o', "output-directory", Required = false, HelpText = "The output directory for the project.")]
public string output_directory { get; set; }

Expand Down
2 changes: 1 addition & 1 deletion src/trgen/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"dotnet-antlr": {
"commandName": "Project",
"commandLineArgs": "-t CSharp",
"commandLineArgs": "-i save,comp -t CSharp",
"workingDirectory": "C:\\msys64\\home\\Kenne\\fortran"
}
}
Expand Down
16 changes: 15 additions & 1 deletion src/trgen/Test.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ public bool IsTargetTypeScript

public Test(Config config)
{
this.ignore_string = null;

// Check for existence of .trgen-ignore file.
// If there is one, read and create pattern of what to ignore.
if (File.Exists(config.ignore_list_of_files))
Expand All @@ -95,7 +97,19 @@ public Test(Config config)
var ignore_lines = lines.Where(l => !l.StartsWith("//")).ToList();
this.ignore_string = string.Join("|", ignore_lines);
}
else this.ignore_string = null;
if (config.ignore.Any())
{
var t = string.Join("|", config.ignore);
if (this.ignore_string != null)
{
this.ignore_string += "|" + t;
}
else
{
this.ignore_string = t;
}
}

}
}
}
2 changes: 1 addition & 1 deletion src/trgen/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ simplify and eliminate bugs created when adding new grammars.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trgen/trgen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This program is part of the Trash toolkit.]]>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<DebugSymbols>true</DebugSymbols>
<Version>0.23.3</Version>
<Version>0.23.4</Version>
<RepositoryUrl>https://github.com/kaby76/Trash/tree/main/src/trgen</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/trgenvsc/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"profiles": {
"dotnet-antlr": {
"commandName": "Project",
"commandLineArgs": "--help",
"workingDirectory": "C:\\msys64\\home\\Kenne\\issues\\g4-3976\\eiffel"
"commandLineArgs": "",
"workingDirectory": "C:\\msys64\\home\\Kenne\\issues\\a4-4685"
}
}
}
2 changes: 1 addition & 1 deletion src/trgenvsc/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A basic settings.rc file is supplied for you to edit.

## Current version

0.23.3 Code clean up, improvements to tritext, added trsort, trclonerename.
0.23.4 Clean up build of trgenvsc.

## License

Expand Down
2 changes: 1 addition & 1 deletion src/trgenvsc/templates/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ npm i vscode-languageserver-protocol@3.16.0-next.7
npm i vscode-languageserver-types@3.16.0-next.3
npm install
npm run compile
vsce package
./node_modules/.bin/vsce package
Loading

0 comments on commit 7e78fef

Please sign in to comment.