6 ms·
Thanks, I see it. The translation code is inside ir.py. So you can call ir_to_c(bf_to_ir("+++.")) to do the conversion. Here is the code to convert BF to C, in
by primaryobjects 12y ago
Thanks, I see it. The translation code is inside ir.py. So you can call ir_to_c(bf_to_ir("+++.")) to do the conversion.
Here is the code to convert BF to C, in case anyone else is interested https://gist.github.com/primaryobjects/0ba06f1f6f0d3e984d89 https://gist.github.com/primaryobjects/0ba06f1f6f0d3e984d89
Here it is running the converted C code https://ideone.com/z16KPJ https://ideone.com/z16KPJ
Very cool.