[Mono-dev] parser

Jonathan Gilbert 2a5gjx302 at sneakemail.com
Fri Jan 20 18:53:07 EST 2006

At 09:32 AM 20/01/2006 -0600, Angel Garcia wrote: 
> Hello,
> Is there some library or program that execute a parser-generator like
> bison or yacc in c#?
> Thanks in advance

I have myself ported Java CUP (Creator of Useful Parsers), which is a very
friendly and powerful LALR(1) parser-generator, to C# (both the program
itself and its output). It is similar to yacc/bison, but its syntax is
easier to use (for instance, "parameters" to productions are named instead
of numbered). When I ported it, I created a nice GUI for it which, among
other things, displays statistics visually. The GUI is System.Windows.Forms
based and therefore might not work with mono at this point. However, the
command-line interface remains the same as Java CUP.

The port, including full source code and screenshots, can be found at:


As with Java CUP, the output depends on a small library of common code
called "runtime.dll". It shouldn't be hard to actually build the classes in
this assembly right into your code, though, so that there be no external

Good luck!

Jonathan Gilbert

More information about the Mono-devel-list mailing list