WEXL
What is WEXL
Parenscript transpiler
Installation
-
Install roswell from here:https://github.com/roswell/roswell
-
Install via roswell.
? ros install dbym4820/wexl
- Add to Path
? export PATH=$PATH:~/.roswell/bin/
- Initialize
? wexl init
Usage
Make parenscript file.
;;; ~/.wexl/sample.lisp
(defun sample-js ()
(ps
(defun sum-two-nums (arg1 arg2)
(+ arg1 arg2))))
Convert sample.lisp to sample.js
? wexl transpile ~/.wexl/sample.lisp ~/.wexl/sample.js sample-js
Confirm ~/.wexl/sample.js
function sumTwoNums(arg1, arg2) {
return arg1 + arg2;
};
Todo
- Convert not only each function but also entire file
- and so on..
Copyright
Copyright (c) 2017 Tomoki ABURATANI (aburatanitomoki@gmail.com)
License
Licensed under the MIT License.