JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

eval-string

core-api


    function
    boot.janet on line 2745, column 1

    (eval-string str &opt env)

    Evaluates a string in the current environment. If more control over 
    the environment is needed, use `run-context`. Optionally pass in an 
    `env` table with available bindings.


1 exampleSign in to add an example
Loading...
(eval-string "(+ 1 2 3 4)") # -> 10
(eval-string ")") # -> parse error
(eval-string "(bloop)") # -> compile error
(eval-string "(+ nil nil)") # -> runtime error
swlkrPlayground