Login
7 branches 0 tags
Ben (X13/Arch) Moved cons cells on the heap b167aa0 2 years ago 956 Commits
nujel / binlib / wasm.nuj
;;; 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))