src/parenscript/compiler.lisp @ 8cf52a515a48

Move Markov to Magitek
author Steve Losh <steve@stevelosh.com>
date Tue, 17 Jan 2017 17:29:35 +0000
parents 184af4c4e8fc
children (none)
(in-package :sand.parenscript)

(defun compile-parenscript-file (source)
  (let* ((source-path (pathname source))
         (target-path (make-pathname :type "js"
                                     :defaults source-path)))
    (with-open-file (output target-path
                            :direction :output
                            :if-exists :supersede)
      (write-string (ps-compile-file source-path) output)))
  (values))