We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36cd465 commit a6616daCopy full SHA for a6616da
web/webapp.lisp
@@ -42,9 +42,10 @@
42
43
(defun parse-string (string)
44
"Translate string to a list expression"
45
- (mapcar (lambda (x)
46
- (intern (string-upcase x) :lisp-inference))
47
- (str:words string)))
+ (if (and (str:starts-with-p "(" string)
+ (str:ends-with-p ")" string))
+ (read-from-string string)
48
+ (read-from-string (str:concat "(" string ")"))))
49
50
(defun trim-paren (string)
51
(string-trim '(#\( #\)) string))
0 commit comments