-
There is a g4 grammar for C# on the antlr4 github repo, but this is out of date and doesn't eg have grammars for patterns. Does anyone know of a more up to date g4 grammar for C#? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
This is the only one I'm aware of, but it does have some problems when being considered for actual use:
|
Beta Was this translation helpful? Give feedback.
-
There's this too: https://github.com/antlr/grammars-v4/tree/master/csharp |
Beta Was this translation helpful? Give feedback.
https://github.com/dotnet/roslyn/blob/main/src/Compilers/CSharp/Portable/Generated/CSharp.Generated.g4
This is the only one I'm aware of, but it does have some problems when being considered for actual use: