Parse a text-string to F#-code

后端 未结 3 1006
清歌不尽
清歌不尽 2021-02-07 22:03

How do I take text-string, that is supposed to be F#-code, and parse it into F#-code, to print out the results on the screen?

I\'m guessing it would be solved through a

3条回答
  •  盖世英雄少女心
    2021-02-07 23:02

    I'm guessing it would be solved through a feature in .NET, so it can be done through F# itself or C#.

    Nope. F# provides comparatively tame metaprogramming facilities. You'll need to rip the relevant code out of the F# compiler itself.

提交回复
热议问题