Skip to content

Commit

Permalink
Use different antlr validator (dotnet#242)
Browse files Browse the repository at this point in the history
* switch ANTLR validators.

* finish testing
  • Loading branch information
BillWagner authored Mar 17, 2021
1 parent 7f72bed commit 3002c4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions tools/update-grammar-annex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ declare -a SPEC_FILES=(
dotnet build $GRAMMAR_PROJECT -c Release
dotnet publish $GRAMMAR_PROJECT -c Release -o $GRAMMAR_PROJECT/publish

rm $OUTPUT_FILE

echo Insert General/Lexical Headers
cat $GRAMMAR_PROJECT/grammar-general-lexical-insert.md >$OUTPUT_FILE
dotnet $GRAMMAR_PROJECT/publish/$GRAMMAR_PROJECT.dll $SPEC_DIRECTORY/lexical-structure.md >>$OUTPUT_FILE
Expand Down
6 changes: 2 additions & 4 deletions tools/validate-grammar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ declare -a SPEC_FILES=(
dotnet build $GRAMMAR_PROJECT -c Release
dotnet publish $GRAMMAR_PROJECT -c Release -o $GRAMMAR_PROJECT/publish

rm $OUTPUT_FILE

echo "grammar CSGrammar;" > $OUTPUT_FILE

for file in "${SPEC_FILES[@]}"
Expand All @@ -39,5 +37,5 @@ do
done

# Now, validate it:
curl -H "Accept: application/zip" https://www.antlr.org/download/antlr-4.9.1-complete.jar -o antlr-4.9.1-complete.jar
java -jar antlr-4.9.1-complete.jar -Dlanguage=CSharp $OUTPUT_FILE
curl -H "Accept: application/zip" https://repo1.maven.org/maven2/com/tunnelvisionlabs/antlr4/4.9.0/antlr4-4.9.0-complete.jar -o antlr-4.9.0-complete.jar
java -jar antlr-4.9.0-complete.jar -Dlanguage=CSharp $OUTPUT_FILE

0 comments on commit 3002c4d

Please sign in to comment.