Execute HQ9+/Common Lisp: Difference between revisions

m
Fixed syntax highlighting.
m (Categorization now in master page)
m (Fixed syntax highlighting.)
 
(One intermediate revision by one other user not shown)
Line 3:
The interpreter (in [[Common Lisp]]) accepts a string, treated as program text, or a pathname object, in which case the contents of the file are the program text.
 
<langsyntaxhighlight lang="lisp">(defun slurp (filespec)
"Return the contents of the file as a string."
(with-output-to-string (out)
Line 34:
Go to the store and buy some more~%~
99 bottles of beer on the wall.~%")))
finally (return accumulator)))</langsyntaxhighlight>
9,476

edits