Search code examples
c#parsingbnf

Parser-generator that outputs C# given a BNF grammar?


I'm looking for a tool that will be able to build a parser (in C#) if I give it a BNF grammar (eg. http://savage.net.au/SQL/sql-2003-2.bnf)

Does such a generator exist?


Solution

  • Normally BNF grammars are too ambiguous. ANTLR will be probably good for what you are looking for.