C#语言当前版本的语法
Grammar of the current version of the C# language
C#语言当前版本的语法在哪里?
我指的是类似于此 SQL 语法的语法:https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html
例如,我想检查 https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.0/pattern-matching page and how it relates to the pattern
and primary_pattern
grammar elements defined on the https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/patterns3 页面上提到的 complex_pattern
元素是什么。我在哪里可以找到它的语法?
具有(草案)规范的最新 C# 版本是 C# 6.0。 the specification.
中穿插了语法
更新的 C# 版本还没有规范(您必须采用 C# 6.0 规范,并根据更高版本中存在的功能添加提案,e.g. here)。
Roslyn 存储库包含从最新版本的编译器生成的语法,currently here. Search the Roslyn repository for filename:g4 如果它移动了。
C#语言当前版本的语法在哪里?
我指的是类似于此 SQL 语法的语法:https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html
例如,我想检查 https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.0/pattern-matching page and how it relates to the pattern
and primary_pattern
grammar elements defined on the https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-9.0/patterns3 页面上提到的 complex_pattern
元素是什么。我在哪里可以找到它的语法?
具有(草案)规范的最新 C# 版本是 C# 6.0。 the specification.
中穿插了语法更新的 C# 版本还没有规范(您必须采用 C# 6.0 规范,并根据更高版本中存在的功能添加提案,e.g. here)。
Roslyn 存储库包含从最新版本的编译器生成的语法,currently here. Search the Roslyn repository for filename:g4 如果它移动了。