Hacker News new | ask | show | jobs
Ask HN: Like ParenScript(Lisp Library), Is there anything for C#
2 points by prabuinet 4792 days ago
I'm looking for a CL library which can generate C# from sexp. Similar to what Parenscript does (sexp to JS).

If not available, is it easy to write it from scratch?

Any pointers please. Thanks.

1 comments

Well, there's Clojure which supports CLR. You will not get the C# source code out of it, but it will compile to CLR and run on Windows. As always, unless you already know the platform APIs pretty well, it's going to be hard to get started on a new platform with a new language where documentation is virtually zero, but if you know your way around C# and the APIs you should be ready to go.
I dont think Clojure for CLR will be useful for me. Because I'm mainly looking for C# Code Generation (readable code).