I have a string, which holds a a list structure like ((p X) (q (f X))) and I would really like to find a function that interprets/converts this string as a list of lists just like if it was a '((p X) (q (f X))).
(list "((p X) (q (f X)))") just makes it a single element list.
(intern "((p X) (q (f X)))") encloses it in | symbols.
How does
(read-from-string "((p X) (q (f X)))")
work for you? Documentation found here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With