[antlr-interest] C# vs MSIL Output
Robin Debreuil
robin at debreuil.com
Sun Mar 7 12:40:57 PST 2004
You should throw in an option d) there, parse into a CodeDom structure. That
way you can generate il (pre-generate or at runtime), or source code for
other languages that implement it (C#, vb, etc). You can also use that
sturcture from any .net language. Depends on your needs I guess, but
something to consider...
Cheers,
Robin
----- Original Message -----
From: "Mike Bresnahan" <mbresnah at visi.com>
To: <antlr-interest at yahoogroups.com>
Sent: Sunday, March 07, 2004 12:37 AM
Subject: [antlr-interest] C# vs MSIL Output
> I'm beginning a project to create a .NET mini-language for performing data
> transformations. I'm currently debating which of following would be best:
>
> A) compile the language into a data structure that is used by a runtime
> engine to perform the transformations
> B) compile the language into C# code that performs the transformations
> (after a second compilation)
> C) compile the language directly to MSIL (.NET virtual machine
assembly-like
> language) that performs the transformations
>
> Here's a breakdown of how I see these approaches comparing based on 3
> criteria: ease of implementation, execution speed, and compilation speed
>
> Option Implementation execution compilation
> -------------------------------------------------
> A easy slow fast
> B medium fast slow
> C hard fast medium
>
> I'm currently leaning towards C, because a) it appears to have the best
> trade off between execution and compilation speed b) it is the approach
> taken by XSLTC (albeit in Java) and NMock, and c) it sounds like fun.
> However, I am aware that ANTLR choose option B for its C#/.NET code
> generator. Would the designers of that piece care to share some insight
> with me?
>
> Mike Bresnahan
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list