What is a good C# compiler-compiler/parser generator? [closed]

╄→гoц情女王★ 提交于 2019-11-27 07:37:18
plinth

Gold is OK as far a parser generators go.

ANTLR (nothing else to say)

You might want to look at MinosseCC, a port of JavaCC to C#. Another possibility is Spart.

Find Irony in http://irony.codeplex.com/

PROS: It is simple CONS: -Lack of document -Rather Slow

There is a new parser generator on the block called LLLPG, that supports LL(k) grammars and zero-width assertions. It can be used without a runtime library (a base class suffices). The documentation is fairly detailed now, and I have used LLLPG to parse most of a dialect of C# called Enhanced C# (which, in fact, is the main input language of LLLPG). The input syntax is not EBNF, though (it's sort of a mashup of C# + ANTLR-style code).

Full disclosure: I wrote it. Questions welcome.

Grammatica supports LL(k). http://grammatica.percederberg.net/

Coco/R (from the SSW - "Johannes Kepler" University Linz)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!