Reader macros implemented in Kiss
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
(defreadermacro "!" [stream] #|ReaderExp.StrExp(stream.expect("a string line", function () stream.takeLine()))|#)
|
||||
(defreadermacro "!" [stream]
|
||||
(let [line (stream.expect "a string line" (lambda [] (stream.takeLine)))]
|
||||
(ReaderExp.StrExp line)))
|
||||
|
||||
(defun myLine []
|
||||
!String that takes the rest of the line
|
||||
|
Reference in New Issue
Block a user