Function: nnir-imap-parse-query
nnir-imap-parse-query is a byte-compiled function defined in
nnir.el.gz.
Signature
(nnir-imap-parse-query STRING)
Documentation
Turn STRING into an s-expression query.
STRING is based on the IMAP query language as defined in
nnir-imap-make-query.
This involves turning individual tokens into higher level terms that the search language can then understand and use.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/nnir.el.gz
(defun nnir-imap-parse-query (string)
"Turn STRING into an s-expression query.
STRING is based on the IMAP query language as defined in
`nnir-imap-make-query'.
This involves turning individual tokens into higher level terms
that the search language can then understand and use."
(with-temp-buffer
;; Set up the parsing environment.
(insert string)
(goto-char (point-min))
;; Now, collect the output terms and return them.
(let (out)
(while (not (nnir-imap-end-of-input))
(push (nnir-imap-next-expr) out))
(reverse out))))