https://www.reddit.com/r/rust/comments/94c4m9/is_possible_to...
So, in short, the answer is no. Rust currently lack a clean way to do this.
The semantics are hard to translate also. I'm doing a little lang in rust and is HARD. However, is possible? Yes.
But I think rust need to be able to run from a shared lib and compile to memory, like
https://en.wikipedia.org/wiki/Tiny_C_Compiler
https://www.reddit.com/r/rust/comments/94c4m9/is_possible_to...
So, in short, the answer is no. Rust currently lack a clean way to do this.
The semantics are hard to translate also. I'm doing a little lang in rust and is HARD. However, is possible? Yes.
But I think rust need to be able to run from a shared lib and compile to memory, like
https://en.wikipedia.org/wiki/Tiny_C_Compiler