• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
      • Io
      • Defttag
      • Sys-call
      • Save-exec
      • Quicklisp
      • Oslib
      • Std/io
      • Bridge
      • Clex
      • Tshell
      • Unsound-eval
      • Hacker
      • Startup-banner
      • Command-line
        • Save-exec
        • Argv
        • Getopt
          • Demo-p
          • Defoptions
          • Demo2
          • Parsers
          • Sanity-check-formals
          • Formal->parser
          • Formal->argname
          • Formal->longname
            • Formal->merge
            • Formal->alias
            • Formal->usage
            • Formal->hiddenp
      • Hardware-verification
      • Software-verification
      • Testing-utilities
      • Math
    • Getopt

    Formal->longname

    Signature
    (formal->longname x) → longname
    Arguments
    x — Guard (formal-p x).
    Returns
    longname — Type (stringp longname).

    Definitions and Theorems

    Function: formal->longname

    (defun
       formal->longname (x)
       (declare (xargs :guard (formal-p x)))
       (let ((__function__ 'formal->longname))
            (declare (ignorable __function__))
            (b* (((formal x) x)
                 (longname (cdr (assoc :longname x.opts)))
                 ((when (and (stringp longname)
                             (not (equal longname ""))))
                  longname)
                 ((when longname)
                  (raise "In ~x0, :longname must be ~s1, but found: ~x2"
                         x.name
                         (if (stringp longname)
                             "nonempty" "a string")
                         longname)
                  ""))
                (str::downcase-string (symbol-name x.name)))))