- read-from-string STRINGprocedure
Reads and loads a string containing Shen code.
(import (prefix shen shen:)) ;;; Load file example (shen:read-file "foo.shen") ;;; Evaluate string (shen:read-from-string "(define foo 0 -> 1 1 -> 0)") (shen:read-from-string "(foo 0)") ;;; Should return 1