The source code IS (still) the executable [Updated CSI, a C# interpreter (with source and tests) for .NET 4]


This blog has moved to a new location and comments have been disabled.

All old posts, new posts, and comments can be found on The blog of dlaa.me.

See you there!

Comments (5)
  1. Wow, this is sweet, I was just wanting this the other day.  Looking forward to giving it a try…

  2. Brenda says:

    Wow.  I really need this… but when I click on the link that says "download csi for .NET 4.0, 3.5, …", I get a version that seems to work only if you have .NET 4.0 installed.  Shame.

  3. David Anson says:

    Brenda,

    Per the "Notes" section in the blog post, please look in the "Previous Versions" folder of the ZIP for CSI11.exe, CSI20.exe, CSI30.exe, and CSI35.exe. One of those ought to work for your scenario. 🙂

  4. MattF says:

    How hard would it be to extend this to a Real-time command line interpreter similar to immediate evaluation mode of most functional languages.  Basically what I'd want is to Do the following:

    C:> CSI.exe

    CSI :> Console.WriteLine("Hello World");

    :> Hello World

    CSI :>

    etc. . .

  5. David Anson says:

    MattF,

    That's a bit of a different animal, I think, and I'm not sure the same approach I've taken with CSI would apply directly. (For example, you probably want to be able to create and re-use variables.) That said, a quick web search suggests there are already some implementations of what you're looking for, so I'd suggest having a look at them to see if they'll do what you want.

Comments are closed.