Filtering...

read-string-light

books/std/io/read-string-light

Included Books

other
(in-package "ACL2")
include-book
(include-book "tools/include-raw" :dir :system)
local
(local (include-book "kestrel/utilities/read-acl2-oracle" :dir :system))
read-string-light-fnfunction
(defun read-string-light-fn
  (str pkg state)
  (declare (xargs :guard (and (stringp str) (or (null pkg) (stringp pkg)))
      :stobjs (state))
    (ignore str pkg))
  (prog2$ (er hard?
      'read-string-light
      "Raw lisp definition not installed?")
    (mv-let (err1 errmsg? state)
      (read-acl2-oracle state)
      (mv-let (err2 objects state)
        (read-acl2-oracle state)
        (if (or err1 err2)
          (mv (msg "Reading oracle failed.") nil state)
          (if errmsg?
            (mv errmsg? nil state)
            (mv nil objects state)))))))
other
(defttag :read-string-light)
other
(include-raw "read-string-light-raw.lsp")