poomoo.parsing

Functions for parsing documtenation files and code examples.

parse-string-with-example

(parse-string-with-example s)
Given a string with code examples, returns a sequence of maps:

{:expressions <expressions that are evaluated>
 :input       <(optional) string that is read from STDIN>
 :stderr      <(optional) string that is printed on STDERR>
 :stdout      <(optional> string that is printed on STDOUT>
 :result      <(optional) result of evaluating the :expressions>
 :no-eval     <(optional) indicates that the :expressions shouldn't be
               evaluated>}