2 ms·
The last stage does change the AST into code. I guess "transpiler" might be more apt than "compiler". For an input of "(add 2 (subtract 4 2))" you get an outp
by tyingq 7y ago
The last stage does change the AST into code. I guess "transpiler" might be more apt than "compiler".
For an input of "(add 2 (subtract 4 2))"
you get an output of "add(2, subtract(4, 2));"
- ghusbands 7y agoIndeed. There's not even a meaningful line between compiler and transpiler. All compilers take code in one format and output it in another, and there are plenty of widely-accepted compilers that output C code or assembly, rather than machine code.