src/parenscript/compiler.lisp @ 0ac280dfa75f

primes -> euler
author Steve Losh <steve@stevelosh.com>
date Sun, 13 Aug 2017 00:06:58 -0400
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))