-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
I plan to develop a Fortran JIT compiler (or interpreter) based on Fort, like Cling (https://github.com/root-project/cling) for C/C++.
The brief picture of Cling is that it continuously accepts input from users, and wraps the input into a function declaration if necessary, and puts such a declaration into a virtual file. It then invokes the Clang parser and its derived Clang::ASTConsumer class Cling::DeclCollector to append parsed results into a continuously growing AST. Finally, it invokes the (wrapping) function if required and returns output to users.
I understand that Fort tries to follow the same structure as Clang. As such, can I develop such a Fortran JIT compiler based on the above picture? Any suggestion and comment are very welcome. Thank you.