skx / yal

Yet another lisp interpreter
GNU General Public License v2.0
16 stars 0 forks source link

Allow I/O operations to have a level of indirection. #123

Closed skx closed 1 year ago

skx commented 1 year ago

This pull-request supersedes #121, which was never merged, as a solution to embedding the interpreter and allowing flexible I/O handling:

The test-case for (print), TestPrint, was updated to send output to a faux I/O helper - which is actually a buffer - and shows that the indirection works.

And now that we've implemented the I/O helper we've updated (read) to use it appropriately too.