Arc Forumnew | comments | leaders | submitlogin
5 points by kennytilton 6109 days ago | link | parent

FWIW, in common lisp I have:

  (defun mx2$-macro (stream char)
    (declare (ignore char))
    `(mx2$ ,(read stream t nil t))))

  (set-macro-character #\® #'mx2$-macro)
And that changes ®foo to (mx2$ foo)

So you might be looking for something similar in Scheme, but I have no clue what. The next question then is whether Arc in fact works that way, ie, if you do get something similar defined in Scheme, will $(foo) get expanded before Arc gets to it, or will Arc get in the way.

Apologies for such useless info. btw, if you do end up wanting to Just Try It with the Scheme equivalent I think you will find comp.lang.scheme an excellent resource.