基于dotnet的自定义编译器

在Dotnet环境下,可以允许用户创建T#,S#这样的有自己行业特色的编译器,创建自己的编译语言。

以前在Win32环境下,如果要创建自己的编译语言,就必须去啃大部头的编译语言,在dotnet framework环境下,这个已经成为了一件非常简单,不再是一件奢望的事情。

http://www.c-sharpcorner.com/Code/2003/Sept/CompierDesign.asp

There is java and C# implementation. The Parser was generated using Antlr for both Java and C#. If you want to recompile the sources you will need to download it from antlr page. You will also need to download antlr to run the java examples, the C# implementation comes with antlr runtime, but you will need to have .NET framework installed. You can download .net run-time (for running programs only) from Microsoft.

posted on 2009-10-19 16:20  杨剑  阅读(212)  评论(0编辑  收藏  举报

导航