tags:

views:

456

answers:

5

I have just been re-working an old bit of compiler-like code written using bison. While I was doing this, I was wondering what the modern equivalent is? Is there a nice .NET ( or similar ) compiler writing framework that takes a BNF grammar and splits out a DLL that does the parsing?

+1  A: 

Check out the Gardens Point Parser Generator. It's a YACC/BISON like implementation for C#

GPPG

JaredPar
+4  A: 

There's also ANTLR, a very widely used parser generator implemented in Java.

Don
..which btw supports C# as a target.
utku_karatas
A: 

A quick google search found the Gardens Point Parser Generator.

Harper Shelby
A: 

I recommend Coco/R. It's very similar to JavaCC. Supports C#, Java, C++, F#, VB.Net, Oberon, and other languages.

bruno conde
+2  A: 

I use Gardens Point GPPG and GPLEX in my own dynamic language interpreter. GPPG and GPLEX have been adopted by Microsoft as MPPG and MPLEX in the Visual Studio 200x SDK. This means that is very easy to create a Visual Studio language extension for syntax colouring of your language.