;;; Nujel - Copyright (C) 2020-2021 - Benjamin Vincent Schulenburg
;;; This project uses the MIT license, a copy should be included under /LICENSE
;;;
;;; Contains some routines used in the Emscripten/WASM build
(defn repl/wasm (line)
"Evaluate LINE in the wasm context"
(string/write (try print/error
(eval-in root-closure (cons do (read line))))))
(defn init/wasm (args)
(repl/welcome))