[Mono-dev] C# source-to-source compiler

Liang, Qichang (梁启昌) kcleung.sourceforge at gmail.com
Thu Nov 4 19:17:55 EDT 2010


I am also looking for developing C#-based language extension, which
the compiler will compile to C# 4.0 code that calls *my* runtime
library.  The emitted C# 4.0 code will then go to the original dmcs
compiler, which will then produce CLI bytecode.

Are you suggesting that it is difficult for me to add keywords to the
C# system,

or it is difficult to make the dmcs compiler to emit C# 4.0 code
(rather than CLI code)?


Also are you suggesting that my language should base on extension of
the Boo language rather than C# language?

However C# is much more popular than Boo.............

Thanks!

Qichang

On Fri, Nov 5, 2010 at 1:02 AM, Rafael Teixeira <monoman at gmail.com> wrote:
> Plugins for compilers in the syntax tree part, aren't easy to make it work,
> because the tree segments need to coalesce into a single consistent tree,
> without cycles or disjoints segments.
> That said, there is already a compiler for .NET/Mono that has a pipelined
> design where you can add or substitute stages, it is the Boo compiler.
> Also Boo already support Macros what make it easy to extend it's syntax,
> without having to change the compiler itself.
> Give it a look:
> http://boo.codehaus.org/
> https://github.com/languages/Boo
> https://github.com/bamboo/boo
>
> Rafael "Monoman" Teixeira


More information about the Mono-devel-list mailing list