bradleyjensen/shcl
SHCL is
- a in actuality customizable shell made with secret alien expertise, and
- an unholy union of POSIX Shell and Authentic Recount.
Take into legend Authentic Recount embedded in POSIX shell embedded in Authentic Recount!
Peek that the Authentic Recount compose embedded within the shell expression can
gather entry to the lexical atmosphere.
(let ((rld "rld")) (recall (:stdout) #$ echo Whats up ,(concatenate 'string "Wo" rld) | wc -c #$)) ; => "12"
Now lay your eyes on a convey purpose taking part in a pipeline!
shcl> : ,(shcl/core/debug:graph-dependencies) | dot -Tpng > graph.png
SHCL is handiest in actuality examined in opposition to SBCL, nevertheless it no doubt ought to be moveable to
other convey compilers. Do now not forget that ECL is identified to be problematic
attributable to it tries to reap baby processes mechanically. Besides
to quite loads of convey libraries, SHCL is dependent on clang and libedit.
Building with Nix:
nix-shell manufacture LISP='cl-wrapper.sh sbcl'
Building with out nix:
# Raze dependencies (don't neglect the convey dependencies!) manufacture
I don’t know what you’re looking ahead to to glimpse right here. Its a POSIX-admire
shell. It’s possible you’ll maybe be in a position to present (virtually) all of your popular POSIX shell stuff in it.
shcl> echo foobar foobar shcl> FOO=$(echo echo foo; unfounded) || echo assignment returned unfounded assignment returned unfounded shcl> $FOO foo shcl> { echo foobar ; echo baz ; echo blip ; } | tail -n 1 blip shcl> shcl-enable-convey-syntax shcl> if [ ,(+ 1 2 3) = ,(* 2 3) ]; then > echo woah > fi woah shcl> shcl-repl shcl (convey)> (structure t "Whats up world~%") Whats up world NIL shcl (convey)> (clarify-builtin plot-env (&chance print &required var mark) > (loop :for str :throughout print :produce (structure t "~A~%" str)) > (setf (env var) mark) > Zero) SET-ENV shcl (convey)> ^D shcl> plot-env --print hello --print there VAR mark | wc -l 2 shcl> echo $VAR mark shcl> ^D
Okay, in actuality, that compose of went off the rails.
Read More
Commentaires récents