What parser generator can take a single grammar and create a parser in both C# and JavaScript?
ANTLR I have yet to get into Visual Studio (outdated documentation and packages). The goal is manage a single grammar for a subset of SQL (SELECT statements and new keywords specific to my problem domain) but generate two parsers (C#/JavaScript).
Is there a parser generator that can take a single grammar and create a parser in both c# and javascript?
The only one I am aware of is ANTLR. Note that ANTLR will not generate both a JavaScript- and C# based parser in one go though. You will have to change (at least) one option in the grammar and invoke org.antlr.Tool to generate a parser for your other target language.
I've tried using ANTLR, but I have yet to get it into Visual Studio
Then don't use Visual Studio, but use your favorite text editor (and use org.antlr.Tool from the console), or ANTLRWorks.
There's canopy, which targets javascript, ruby, java, and python from PEG
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With