Created
April 3, 2015 20:36
-
-
Save ElectricCoffee/0868b83b0a141cbf9e07 to your computer and use it in GitHub Desktop.
The code in Land of Lisp is designed with the CLISP interpreter in mind; this code will work with the SBCL interpreter
This file contains hidden or 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
(defun dot->png (fname thunk) | |
(with-open-file | |
(*standard-output* | |
fname | |
:direction :output | |
:if-exists :supersede) | |
(funcall thunk)) | |
(sb-ext:run-program "/opt/local/bin/dot" (list "-Tpng" "-O" fname))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment