Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions run.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(defun update (version)
"update shen-elisp to shen VERSION."
(progn
(require 'org)
(shell-command
(concat
"curl -LO "
"https://github.com/Shen-Language/shen-sources/releases/download/shen-" version "/ShenOSKernel-" version ".zip"))
(shell-command (concat "unzip " "ShenOSKernel-" version ".zip"))
(let ((dl-kl-dir (concat "ShenOSKernel-" version "/klambda/")))
(dolist (klfile
(nthcdr 2 (directory-files dl-kl-dir nil)))
(copy-file (concat dl-kl-dir klfile)
(concat "KLambda/" klfile) t))
(message "Updated KLambda/, may need to update shen-elisp.org...")
(org-babel-tangle-file "shen-elisp.org")
(load-file "shen-primitives.el")
(load-file "install.el")
(runner))))

(update "39.0")
1 change: 1 addition & 0 deletions shen-elisp.org
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Once [[Assignments][the assigning mechanism]] is in place the spec requires some
(shen/set '*release* emacs-version)
(shen/set '*port* 1.7)
(shen/set '*os* (symbol-name system-type))
(shen/set '*version* "S39.0")
#+END_SRC
** Boolean Operations
Unlike Elisp in KLambda booleans are ~false~ and ~true~, distinct symbols which
Expand Down