(rontolisp) docs
← Functions

read-from-string

(read-from-string string)

Parses and returns one datum from the given string. It reuses the same reader as read, so on the compiled backends it accepts the same value kinds (the WASM reader being the narrowest). The optional eof-error-p/eof-value and the :start/:end keyword arguments are not supported -- only the single string argument is accepted. Works in all three backends and is usable as a first-class value (#'read-from-string).

The result is the parsed list (+ 1 2) as data, not its evaluation; pass it to eval if you want the value 3.