cast
cast copied to clipboard
Concrete/Abstract Syntax Trees for Clojure
Since the AST is simple, this should be relatively straightforward. There's not a lot of need, but it could be useful.
This is the remainder of the excised LispReader class. It has to ensure that reader macros are handled correctly, as well as macro expansion.
Lists are being loaded and tested. A couple of other data types are loaded, but untested. Most of the reader macros will need explicit implementation.
.emit on syntax elements creates a string. These should be written to a stream. A wrapper function using a StringWriter can be used to duplicate the current string response