Skip to content

Commit

Permalink
[build] Fix of antlr#3269 (Remove all mentions of "Antlr4cs") (antlr#…
Browse files Browse the repository at this point in the history
…3270)

* Remove Antlr4cs support and mentions.

* Remove _scripts, .github from consideration of testing as there are no desc.xml there. Code from ChatGPT4!

* Fix build crash when directory is removed on a git diff.

* Fix bcpl problem with newer trgen (grammar should only be bcpl.g4, not both g4's in the directory. Update ambiguous situations in grammars for testing.

* Remove debugging output.
  • Loading branch information
kaby76 authored Mar 17, 2023
1 parent 153294f commit eb476b2
Show file tree
Hide file tree
Showing 253 changed files with 245 additions and 1,692 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ updates:
labels:
- "infrastructure"
- "dependencies"
# script based multiple runtime test
# antlr4cs test is not supported by this repo
# cpp cmake is not supported by bot
# csharp
- package-ecosystem: "nuget"
directory: "/_scripts/templates/CSharp"
schedule:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Install trgen
shell: bash
run: |
for i in trgen triconv trwdog trxml trxml2; do dotnet tool install -g $i --version 0.20.11; done
for i in trgen triconv trwdog trxml trxml2; do dotnet tool install -g $i --version 0.20.12; done
- name: Test
shell: pwsh
run: |
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
- name: Install trgen
shell: bash
run: |
for i in trgen triconv trwdog trxml trxml2; do dotnet tool install -g $i --version 0.20.11; done
for i in trgen triconv trwdog trxml trxml2; do dotnet tool install -g $i --version 0.20.12; done
- name: Test
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion _scripts/gen-desc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fi
echo "grammars = $grammars"
echo "Evaluating targets for each grammar..."

targets="Antlr4cs CSharp Cpp Dart Go Java JavaScript PHP Python3 TypeScript"
targets="CSharp Cpp Dart Go Java JavaScript PHP Python3 TypeScript"
for g in $grammars
do
echo Starting analysis of $g
Expand Down
10 changes: 3 additions & 7 deletions _scripts/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
This directory contains scripts for CI testing.

* regtest.sh -- This is a Bash-based script to test any target. To
run, cd to grammar-vs/ or a grammar directory, then type `bash regtest.sh <target>`
where `<target>` is Antlr4cs, Cpp, CSharp, Dart, Go, Java, PHP, or Python3.
run, cd to grammar-vs/ or a grammar directory, then type `bash _scripts/test.sh <target>`
where `<target>` is Cpp, CSharp, Dart, Go, Java, PHP, or Python3.
To test the target, you will need the NET SDK installed (required for the trgen
driver generator), access to the internet, and to toolchain for the target
you want to test. You will also need to set the Antlr4 tool.
Expand Down Expand Up @@ -80,10 +80,6 @@ All the templates are in the "per-target directory" standard:
Here is the structure of the default templates:

templates/
Antlr4cs/
Program.cs
Test.csproj
makefile
CSharp/
ErrorListener.cs
Program.cs
Expand Down Expand Up @@ -166,7 +162,7 @@ You will need to pass to trgen
to the templates. If you do not pass the --template-sources-directory option,
the tool will use the default templates contained with the tool. You can
generate a different target using `-t`. Acceptable targets are
Antlr4cs, Cpp, CSharp, Dart, Go, Java, JavaScript, Python3.
Cpp, CSharp, Dart, Go, Java, JavaScript, Python3.
The "files" directory in the templates
directory indicates what files are included in generation, and obtained
via "find . -type f > files".
108 changes: 0 additions & 108 deletions _scripts/templates/Antlr4cs/CaseChangingCharStream.cs

This file was deleted.

39 changes: 0 additions & 39 deletions _scripts/templates/Antlr4cs/ErrorListener.cs

This file was deleted.

Loading

0 comments on commit eb476b2

Please sign in to comment.