-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
• Add new MS Rules to provide actions & predicates for a number of C#’s non-grammar rules: - adjacency requirement for tokens in >> & >>= - restrict places declaration expressions can be used – as the grammar for them is very loose - type argument list disambiguation - report semantic error if null-forgiving is applied to null-forgiving - tweak order of choices in a couple of rules so Antlr picks the right one • Samples: - Reorganise - Spilt the large AllInOneNoPreproccesor-v6 into parts - Add new samples for new constructs - Switch them all to use the new Rules MS
- Loading branch information
1 parent
4a0b2ac
commit 5db6700
Showing
192 changed files
with
83,091 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
tools/GrammarTesting/Tests/Parsing/Samples/AllInOneNoPreprocessor-v7/_Sample_Options.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Parsing Samples | ||
|
||
Sub-directories are used to group related (in some way) tests. | ||
|
||
The “v*n*” folders typically contain samples testing features introduced | ||
in *or before* that version of C# – though nothing is enforced. |
32 changes: 32 additions & 0 deletions
32
...rsing/Samples/v6/AllInOneNoPreprocessor-v6-split/part-A/AllInOneNoPreprocessor-v6-part.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
extern alias Foo; | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Linq.Expressions; | ||
using System.Text; | ||
using M = System.Math; | ||
|
||
using ConsoleApplication2.Test; | ||
|
||
/**/ | ||
/* the previous comment is an empty delimited comment and not a document comment */ | ||
/** this is a document comment */ | ||
// this one is a single line comment | ||
|
||
using X = int1; | ||
using Y = ABC.X<int>; | ||
|
||
using static System.Math; | ||
using static System.DayOfWeek; | ||
using static System.Linq.Enumerable; | ||
|
||
[assembly: System.Copyright(@"(C)"" | ||
2009")] | ||
[module: System.Copyright("\n\t\u0123(C) \"2009" + "\u0123")] | ||
|
||
class TopLevelType : IDisposable | ||
{ | ||
void IDisposable.Dispose() { } | ||
} |
5 changes: 5 additions & 0 deletions
5
...sting/Tests/Parsing/Samples/v6/AllInOneNoPreprocessor-v6-split/part-A/ReadMe.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Sample: AllInOneNoPreprocessor-v6-* | ||
|
||
This is a standard sample based off a test file originating with the Roslyn project. | ||
|
||
The AllInOneNoPreprocessor-v6-* combined contain samples of most of the C# constructs up to C# v6. |
Oops, something went wrong.