src/parenscript/compiler.lisp @ 833316fc5296

Add a bunch of stuff from the past month or two...
author Steve Losh <steve@stevelosh.com>
date Fri, 14 Oct 2016 21:15:54 +0000
parents 277982735a9d
children 184af4c4e8fc
(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))