eta.util.sexpr.parse_s_expr
- parse_s_expr(s_expr)[source]
Parse a string containing an S-expression (in LISP form) into a structured list.
- Parameters:
s_expr (str) – An S-expression in LISP form, e.g.,
(a (b c (d e)) '(f g h))
.- Returns:
A structured S-expression, i.e., a recursively nested list structure with string “symbols” as atoms. e.g.,
['a', ['b', 'c', ['d', 'e']], "f g h"]
- Return type:
s-expr