Snippets tagged newbie

  • [HELP!] How to separately compile a function in F# at RUN-TIME ?

    Hello everyone, I'm a student who's programed with F# for 8 months. With F#, I managed to write an interpreter for my own language. By using higher order functions and abstract syntax tree, my interpreter can turn the whole program written by programmers (in the form of a string[]) into a single unit->unit function which actually runs (exactly) what programmers wrote in the string[]. The thing is I'd like to know if there are ways to compile/ convert a function into a .exe file. If someone's willing to help me, feel free to leave a comment by editing this snipet. /// Please note that I'm asking how to compile a function (can be unit or unit->unit) at RUN-TIME. Thank you in advance. /// Oh, by the way, I left the link to the source code of my interpreter. This may be useful for you to help me. /// Please, just don't laught at my interpreter and the way I wrote it.

    1 people like this

    Posted: 11 days ago by A Person Trying To Sharpen His Programming with F# Everyday