awwx.ws

extend-readtable0

Extends MzScheme’s reader

http://awwx.ws/extend-readtable0.arc:

(def extend-readtable (c parser)
  (scheme
   (current-readtable
    (make-readtable (current-readtable)
                    c
                    'non-terminating-macro
                    (lambda (ch port src line col pos)
                      (parser port))))))

Prerequisites

This hack depends on arc3.1 and scheme0.

License

Same as Arc.

Contact me

Twitter: awwx
Email: andrew.wilcox [at] gmail.com