I need to write a translator for the language. I decided to use ANTLR4. The files for the parser are generated for Java, but I need them to be generated for C#. What do I need to add or do to change the language for which files will be created?
According to the documentation, I installed the Nuget package Antlr4.Runtime.Standart, and also installed the extension in VS Code. Then I downloaded the latest jdk. I created a project, added a *.g4 file, wrote a grammar, saved the file and everything worked. BUT! *.java files were generated, but should be *.cs. What did I forget to configure? What needs to be specified so that files are generated for C# and not for Java? Files Here is the code in the .csproj file:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Antlr4.Runtime.Standard" Version="4.13.1" />
</ItemGroup>
</Project>