Question

Is there a good yacc/bison type LALR parser generator for .NET ?

Was it helpful?

Solution

Antlr supports C# code generation, though it is LL(k) not technically LALR. Its tree rewriting rules are an interesting feature though.

OTHER TIPS

SableCC can generate c# code. It's pretty good but you need a few days to figure out how it all works, because the documentation ist not that great

The Gardens Point Parser Generator looks good, however I've not had a chance to try it myself.

Check out Gold. It is LALR compliant and supports lots of languages, if not the most. Gold can convert YACC and Bison type grammars.

If it does not suit your needs then check out this page.

Spirit is another LALR parser.

Also note that Mono created a variant of the Jay parser for their c# and .NET framework. Their c# compiler is, from what I can tell, production quality.

Coco It's LL(k) but does a good job

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top