Sunday, 3 February 2013

REPL GUI for Clojure-CLR (C# port of Lisp’s Clojure)

Here is a script/tool I wrote a while back (when I wanted to see what Lisp was all about), where I created a REPL Gui based on the amazing Clojure-clr project (which is CLR port of Clojure)

You can download this O2 Platform tool from: Util - Clojure-clr REPL (Lisp) v.2.0.exe

This is a 9Mb standalone exe (only requirement is the .NET Framework 4.0 running on a Windows box):

image

which looks like this when executed:

image

As with all the other O2 Platform based REPLs, this is a real time execution and compilation environment:

image

Since you (like me) are most likely new to LISP, I included in this tool a Samples drop-down menu containing a number of LISP code snippets:

image

Note: these code examples were based on the great http://tryclj.com/ online tutorial:

image

For reference, here are the LISP Code Snippets  in action:

Tutorial
image

Arithmetic
image

Division
image

Multiple sums
image

Our first function
image

An anonymous function
image

Named function
image

A map
image