jan tolenaar / kiezellisp / index-of-everything

Name

read-from-string

Usage

builtin-function

Syntax

(read-from-string text &optional (eof-error? true) (eof-value null))

Description

Reads an expression from the string text.

make-html > (read-from-string "(+ 3 4)")
it: (+ 3 4)
make-html > (read-from-string "")
read-from-string: unexpected EOF
make-html 1 > (read-from-string "" false)
it: null
make-html 1 > (read-from-string "" false 42)
it: 42