4 ms·
Ah, this is actually what I had in mind by "interop". So from C# I can evaluate some Lisp code and then test that the result is `PairType` (for example)? Maybe
by default-kramer 2y ago
Ah, this is actually what I had in mind by "interop". So from C# I can evaluate some Lisp code and then test that the result is `PairType` (for example)? Maybe this is so obvious it goes without saying, but I didn't see any examples of that.
- codr7 2y agoI understand. Sure thing, VM.Eval("your code") returns a value if one is produced. if (vm.Eval("1:2") is Value v and v.Type == Libs.Core.Pair) { Console.WriteLine("Pair: " + v.Cast(Libs.Core.Pair)); } Have a look in the main Program.cs to see how to get a VM up and running.