-
Notifications
You must be signed in to change notification settings - Fork 148
Description
Hi, thanks for working on Frege it seems like a great project.
I would like to embed Frege in another application that supports a scripting interface (I don't want to use it just for "scripting" though.) so that I can get Haskell language support.
I searched everywhere I could and the only information I could find is at https://groups.google.com/forum/#!topic/frege-programming-language/hL0b1dVfgLc
I'm not very experienced with java and I didn't see any APIs that would clearly be what I want.
How can I go about embedding the Frege compiler jar in an application, call it/pass some source code files to it, and get something I can run out of it?
I imagine the overall steps would be something like the following:
- Have the Frege compiler on the classpath
- initialize the compiler / pass some files to it
- get some java classes (?) out of it
- run the java stuff
- pass do things back and forth over FFI
- be happy
Edit:
To clarify: I would like the capability to compile and run code at "runtime", and not just loading some precompiled code.
I saw mentions of a scripting API, but I'm not sure if that's appropriate for running "proper" programs?