How to add Clojure REPL to an existing .NET application?

How to add an interactive Clojure REPL to an existing .NET application so that I can use it as a real-time debugging tool? (Ideally, this would be C # REPL, but somehow it’s not so (maybe .NET 5.0?) The last thing I heard: http://channel9.msdn.com/blogs/pdc2008/tl16 )

I know that there is a Clojure-CLR project on GitHub, but I wonder if someone has already come up with a manual or a simple library for integrating Clojure-CLR REPL into an existing application?

+7
source share
3 answers

I have no idea how CLR differs from Clojure from regular Clojure, so this may not be very useful, but you should take a look at the implementations of these REPLs:

I easily integrated Enclojure REPL into the Redcar Editor , so this might be an option for you if you port Enclojure to the Clojure CLR? The code regarding Enclojure REPL is pretty short, so I don't think that would be a huge effort.

If you are not looking for anything out of the ordinary, you can always collapse your REPL using the load-string function.

+2
source

If I understand your question correctly, you need C # REPL, but if you are not looking for any REPL on .NET, and Clojure seems like this, since it already has REPL, and there is a Clojure .NET port.

If so, you might consider integrating F # REPL, F # Interactive. Firstly, it was integrated into the MonoDevelop open source development environment , so the source code is available for reference.

+2
source

My possible solution was to accept IronPython. As Joel correctly identified, I was not particularly attached to Clojure (my question was incorrect), and any language that supports interactive development could do.

Search for eval function in any .NET language

+2
source

All Articles