是否有现代的(例如CLR)替代野牛/yacc? [英] Is there a modern ( e.g. CLR ) replacement for bison / yacc?

查看:85
本文介绍了是否有现代的(例如CLR)替代野牛/yacc?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在重做一些使用bison编写的类似编译器的代码.当我这样做时,我想知道现代的等效物是什么?是否有一个不错的.NET(或类似)编译器编写框架,该框架采用BNF语法并拆分出可以进行解析的DLL?

I have just been re-working an old bit of compiler-like code written using bison. While I was doing this, I was wondering what the modern equivalent is? Is there a nice .NET ( or similar ) compiler writing framework that takes a BNF grammar and splits out a DLL that does the parsing?

推荐答案

我在自己的动态语言解释器中使用Gardens Point GPPG和GPLEX. Microsoft在Visual Studio 200x SDK中将GPPG和GPLEX用作MPPG和MPLEX.这意味着创建用于语言语法着色的Visual Studio语言扩展非常容易.

I use Gardens Point GPPG and GPLEX in my own dynamic language interpreter. GPPG and GPLEX have been adopted by Microsoft as MPPG and MPLEX in the Visual Studio 200x SDK. This means that is very easy to create a Visual Studio language extension for syntax colouring of your language.

这篇关于是否有现代的(例如CLR)替代野牛/yacc?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆