写一个DSL的.Net平台平台、DSL、Net

2023-09-03 02:05:57 作者:女孩,不哭

我想到写一个 DSL 在.NET环境中运行的。我最有可能在C#来实现这一点,虽然我很灵活这一点。

I am thinking of writing a DSL to be run in the .Net environment. I am most likely to implement this in C#, though I am flexible on this.

是否有表明参与编写DSL的.Net平台的主要步骤推荐的在线资源?

Is there a recommended online resources that show the main steps involved in writing a DSL for the .Net platform?

在理想情况下,我想一个资源,将至少提供以下的概述:

Ideally, I would like a resource that would provide at least an overview on the following:

在Spec'ing一个DSL 如何规格映射到.NET Framework preferably一个HelloWorld的.NET语言来实现一个简单的DSL的例子

其实,我刚才看到这篇文章 - 但它有点过时。有没有人对文章是否是一个很好的起点,或不是视图(.NET Framework和C#似乎在发展速度非常快)

Actually, I have just seen this article - but it is slightly dated. Does anyone have a view on whether the article is a good starting point or not (the .Net framework and C# seem to evolve at a very rapid pace)

推荐答案

如果你愿意的话题买了一本书,我强烈推荐的在嘘的DSL:领域特定语言的.NET,由Ayende Rahien 的。非常翔实,轻轻带你穿越写的是DSL的过程。笔者采用了轻量级的.NET语言,所谓的嘘声,作为基础的DSL的语法。

If you are willing to buy a book on the topic, I highly recommend "DSLs in Boo: Domain Specific Languages in .NET" by Ayende Rahien. Very informative and gently takes you through the process of writing a DSL. The author uses a lightweight .NET language called Boo to serve as basis for the DSL's syntax.

你也可以看看VS2012的角落:

Also you can look into VS2012 corner:

微软的Visual Studio 2012的可视化和放大器;建模人员 微软Visual Studio 2010的可视化和放大器;建模人员 Microsoft Visual Studio 2012 Visualization & Modeling SDK Microsoft Visual Studio 2010 Visualization & Modeling SDK