.NET 是否有一个好的 yacc/bison 类型 LALR 解析器生成器?

发布于 2024-07-04 18:26:42 字数 1560 浏览 6 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

你的背包 2024-07-11 18:26:42

Coco 这是 LL(k),但做得很好

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

演出会有结束 2024-07-11 18:26:42

查看黄金。 它符合 LALR 标准并支持多种语言(如果不是最多的话)。 Gold可以转换YACC和Bison类型语法。

如果它不适合您的需求,请查看此页面

Spirit 是另一个 LALR 解析器。

另请注意,Mono 为其 C# 和 .NET 框架创建了 Jay 解析器的变体。 据我所知,他们的 C# 编译器具有生产质量。

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.

童话 2024-07-11 18:26:42

Gardens Point Parser Generator 看起来不错,但我还没有机会我自己尝试一下。

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

SableCC 可以生成c#代码。 它非常好,但是您需要几天的时间才能弄清楚它是如何工作的,因为文档不是那么好

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

空名 2024-07-11 18:26:42

Antlr 支持 C# 代码生成,尽管它是 LL(k) 而不是技术上的 LALR。 不过,它的树重写规则是一个有趣的功能。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文