masak / bel

An interpreter for Bel, Paul Graham's Lisp language
GNU General Public License v3.0
27 stars 1 forks source link

Do not print 'def' or 'mac' stuff #385

Closed masak closed 3 years ago

masak commented 3 years ago

Closes #110.

The solution picked is a nice compromise between everything proposed: if the REPL input was obviously a def or mac declaration, and the output is obviously a lit clo or a lit mac literal, then we just skip printing it.

The @ idea from the end of that issue is still a good idea, but should be tracked in a separate issue.