NashFP / fsharpy

Communicate with the F# interactive (FSI) from Elixir.
MIT License
2 stars 0 forks source link

Research how fsi's read-eval-print-loop works and hook in at that level rather than string scraping #1

Open bryanhunter opened 3 years ago

bryanhunter commented 3 years ago

Research the fsi code: https://github.com/dotnet/fsharp/blob/main/src/fsharp/fsi/fsimain.fs

...and document findings and recommendations.

shritesh commented 3 years ago

This should be helpful: https://fsharp.github.io/FSharp.Compiler.Service/interactive.html There's even an example of reflection on the type of the evaluated expression.

Personally, I couldn't get the sample code to work on my Linux x64 box with dotnet SDK 5.0.6. It fails with some DLL missing. I couldn't install dotnet on my M1 Mac at all.