Skip to content

Commit

Permalink
Merge pull request #1207 from BillWagner/install-v2-grammar-check
Browse files Browse the repository at this point in the history
Install v2 grammar check
  • Loading branch information
BillWagner authored Nov 22, 2024
2 parents 3f133e8 + 2d105ef commit 2b81a82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Binary file not shown.
6 changes: 5 additions & 1 deletion .github/workflows/dependencies/ReplaceAndAdd.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ primary_no_array_creation_expression
| base_access
| post_increment_expression
| post_decrement_expression
| null_forgiving_expression
| object_creation_expression
| delegate_creation_expression
| anonymous_object_creation_expression
Expand Down Expand Up @@ -127,6 +128,9 @@ primary_no_array_creation_expression
// | post_decrement_expression
| primary_no_array_creation_expression '--'
| array_creation_expression '--'
// | null_forgiving_expression
| primary_no_array_creation_expression null_forgiving_operator
| array_creation_expression null_forgiving_operator
| object_creation_expression
| delegate_creation_expression
| anonymous_object_creation_expression
Expand Down Expand Up @@ -159,7 +163,7 @@ Here we just define one token in terms of another to remove the overlap warnings

```ANTLR
// [CHANGE] This allows the grammar to verify without warnings, it does NOT correctly
// [CHANGE] parse interpolated strings – that requires modes and/or lexical predicates.
// [CHANGE] parse interpolated strings – that requires modes and/or lexical predicates.
// [CHANGE] Note: Interpolated strings are properly parsed in Base and other sets.
# Expect
Interpolated_Verbatim_String_End
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/grammar-validator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
# Install build grammar global tool
- name: Install BuildGrammar tool
run: |
dotnet tool install --version 2.0.0-beta.3 --global --add-source ./.github/workflows/dependencies/ EcmaTC49.BuildGrammar
dotnet tool install --version 2.0.0 --global --add-source ./.github/workflows/dependencies/ EcmaTC49.BuildGrammar

- name: run validate
Expand Down

0 comments on commit 2b81a82

Please sign in to comment.