Function: COMPILE-TAL-STRING-TO-LAMBDA

Documentation

Returns the source code for the tal function form the tal text STRING.

Source

(defun compile-tal-string-to-lambda (string &optional (expression-package *package*))
  "Returns the source code for the tal function form the tal text STRING."
  (bind-tal-compile-environment ((generator (gensym)))
    (with-tal-compile-environment (generator)
      `(lambda (-tal-environment- ,generator)
         (declare (ignorable -tal-environment- ,generator))
         ,(let ((*package* (find-package :it.bese.yaclml.tags))
                (*expression-package* expression-package))
            (transform-lxml-form (it.bese.yaclml.xmls:parse string :uri-to-package *uri-to-package*)))))))
Source Context