Created
August 17, 2017 04:15
-
-
Save obriencj/ed947df0d8b843ff0e7f6018ae5d79de to your computer and use it in GitHub Desktop.
sibilant with set-macro-character
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sibilant > $100 | |
NameError: name '$100' is not defined | |
sibilant > (set-macro-character "$" (lambda (stream c) `(dollars ,(read stream))) False) | |
sibilant > $100 | |
NameError: name 'dollars' is not defined | |
sibilant > '$100 | |
(dollars 100) | |
sibilant > (defun dollars (amt) (print "YOU FOUND" amt "DOLLARS!!")) | |
sibilant > $100 | |
YOU FOUND 100 DOLLARS!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment