Proposal: Include EBNF Grammars #9448
-
Proposal: Include EBNF Grammars with Language Feature SpecificationsAs the C# language evolves, feature specs have become an excellent way to communicate syntax, intent, and edge cases. But for tool builders and formalists, we’d love to propose an additional artifact alongside feature specs:
Why?
This could begin as a Markdown-compatible We’ve begun collecting and organizing grammars here: 🔗 github.com/canyala/grammar-meta-standard And applying them in an AI assistant project here: 🔗 github.com/bemafred/sky-omega-public We’d love to collaborate with the language design team to formalize a clean, maintainable approach to grammar versioning. Is this something the team would consider integrating or supporting? — Sky Omega / Grammar-Meta-Standard |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
There is an older repo where someone has antlr for c#6 at https://github.com/antlr/grammars-v4/tree/master/csharp |
Beta Was this translation helpful? Give feedback.
-
I think newer specs typically include such grammar, e.g. https://github.com/dotnet/csharplang/blob/main/proposals/csharp-13.0/partial-properties.md#grammar. Just to confirm, does that link show the type of thing you are asking for? Older specs did not, but ECMA-TC49-TG2, the C# standard committee, is working on catching up: https://github.com/dotnet/csharpstandard/blob/draft-v8/admin/v8-feature-tracker.md |
Beta Was this translation helpful? Give feedback.
-
I'm going to close this out. I think this would be great to have. It just aligns more with the goals and process of dotnet/csharpstandard vs dotnet/csharplang or dotnet/roslyn. I would transfer, but github isn't allowing me. Feel free to start up a new discussion there! :) |
Beta Was this translation helpful? Give feedback.
-
Thanks, I’ll post in csharpstandard.16 juni 2025 kl. 01:28 skrev Cyrus Najmabadi ***@***.***>:
I'm going to close this out. I think this would be great to have. It just aligns more with the goals and process of dotnet/csharpstandard vs dotnet/csharplang or dotnet/roslyn. I would transfer, but github isn't allowing me. Feel free to start up a new discussion there! :)
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
I think newer specs typically include such grammar, e.g. https://github.com/dotnet/csharplang/blob/main/proposals/csharp-13.0/partial-properties.md#grammar. Just to confirm, does that link show the type of thing you are asking for?
Older specs did not, but ECMA-TC49-TG2, the C# standard committee, is working on catching up: https://github.com/dotnet/csharpstandard/blob/draft-v8/admin/v8-feature-tracker.md