-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
It would be great to add support for using Antlr4 with .NET Core projects. There are 2 items here to truly support antlr on .NET Core:
(1) Antlr4 runtime. Ensure that runtime and generated code are compatible with .NET core apps. FWIW it appears the "netcore45" assembly in the nupkg already supports .NET Core. So this may be as simple as updating the packaging to install to the right TFMs.
(2) Antlr4 code-gen. Previously antlr4cs tied into MSBuild. Since .NET Core projects generally won't use MSBuild, it would be nice to add alternate ways of running antlr4 code gen. This could be done as a project tool for dotnet CLI. In theory this would be as simple as adding a simple command called dotnet-antlr that invokes java on the *.jar file with the right parameters.