mitranim/jisp

Printing jisp code back after macroexpand

Opened this issue · 0 comments

There needs to be a way to return jisp code after parsing and expanding all macros, but before compiling. This must be available as a compiler option, and in the REPL.

This requires implementing jisp printing and beautification. Blindly printing the code back, as a single line, should be trivial. Indenting should also be simple: in the simplest form, it’s 2 extra spaces per each level of nesting. Not sure how to decide where to put linebreaks. ToDo figure it out and implement.