Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use ANTLR best in a F# solution? #371

Open
ChristophSchmidpeter opened this issue Nov 6, 2021 · 1 comment
Open

How to use ANTLR best in a F# solution? #371

ChristophSchmidpeter opened this issue Nov 6, 2021 · 1 comment

Comments

@ChristophSchmidpeter
Copy link

ChristophSchmidpeter commented Nov 6, 2021

Is there a way to generate F# or MSIL code? Or is the only way to use ANTLR in a F# environment to create a separate C# project into which ANTLR creates C# code?

@lextm
Copy link

lextm commented Nov 6, 2021

Microsoft's primary goal of designing .NET is to enable interoperation among languages, so when C# code can be generated from an ANTLR grammar file you don't need the duplicate tooling for VB.NET or F#.

But in case you do want to generate F# code and help the F# community, you can get started from https://github.com/antlr/antlr4/blob/master/doc/creating-a-language-target.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants