jisp icon indicating copy to clipboard operation
jisp copied to clipboard

Printing jisp code back after macroexpand

Open mitranim opened this issue 11 years ago • 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.

mitranim avatar Jul 11 '14 19:07 mitranim