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

為{幸葍}努か 提交于 2019-11-26 13:46:57

问题


I'm looking for a parser generator that given an EBNF for a LL(k) language will give me a C# parser and generate classes the types defined in the EBNF.


回答1:


Gold is OK as far a parser generators go.




回答2:


ANTLR (nothing else to say)




回答3:


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




回答4:


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

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




回答5:


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.




回答6:


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




回答7:


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



来源:https://stackoverflow.com/questions/1194584/what-is-a-good-c-sharp-compiler-compiler-parser-generator

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