• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • Soft
      • Defthm-domain
      • Event-macros
        • Evmac-input-hints-p
        • Evmac-input-print-p
        • Event-macro-input-processing
        • Function-definedness
        • Event-macro-screen-printing
        • Make-event-terse
        • Event-macro-applicability-conditions
        • Event-macro-results
        • Template-generators
        • Event-macro-event-generators
        • Event-macro-proof-preparation
        • Try-event
        • Restore-output?
        • Restore-output
        • Fail-event
        • Cw-event
        • Event-macro-xdoc-constructors
          • Event-macro-xdoc-constructors-user-level
            • Xdoc::evmac-desc-function/lambda/macro
            • Xdoc::evmac-desc-term
            • Xdoc::evmac-topic-design-notes
            • Xdoc::evmac-appcond
            • Xdoc::evmac-desc-input-name
              • Xdoc::evmac-section-redundancy
              • Xdoc::evmac-input-show-only
              • Xdoc::evmac-input-print
              • Xdoc::evmac-desc-input-enable-t/nil
              • Xdoc::evmac-section-appconds
              • Xdoc::evmac-input-hints
              • Xdoc::evmac-section-generated
              • Xdoc::evmac-section-intro
              • Xdoc::evmac-section-inputs
              • Xdoc::evmac-section-form
            • Event-macro-xdoc-constructors-implementation-level
          • Event-macro-intro-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Event-macro-xdoc-constructors-user-level

    Xdoc::evmac-desc-input-name

    Construct a description of a :...-name input for the user documentation of an event macro.

    This is for an input to determine the name of an entity (e.g. a function) generated by the event macro.

    The ... in :...-name is passed as the prefix argument of this macro.

    A description of the entitty whose name is being determined is passed as the desc argument of this macro.

    The auto-desc argument of this macro describes the name used when the :...-name input is :auto.

    An XDOC tree of additional text can be passed as the additional argument of this macro.

    The name-rest argument of this macro is the name that the generated documentation says that will be used as the name of the entity in the rest of the documentation page.

    Macro: evmac-desc-input-name

    (defmacro xdoc::evmac-desc-input-name
              (prefix &key
                      desc auto-desc additional name-rest)
     (declare (xargs :guard (and (stringp prefix)
                                 (stringp desc)
                                 (stringp auto-desc)
                                 (stringp name-rest))))
     (cons
      'xdoc::desc
      (cons
       (concatenate 'string
                    "@(':" prefix
                    "-name') — default @(':auto')")
       (cons
        (cons 'xdoc::p
              (cons '"Determines the name of "
                    (cons desc '("."))))
        (cons
         '(xdoc::p "It must be one of the following:")
         (cons
          (cons
           'xdoc::ul
           (cons (cons 'xdoc::li
                       (cons '"@(':auto'), to use "
                             (cons auto-desc '("."))))
                 '((xdoc::li "Any other symbol, to use as the name."))))
          (append
           (and additional (list additional))
           (cons
            (cons
             'xdoc::p
             (cons
                '"In the rest of this documentation page,
          let @('"
                (cons name-rest '("') be this name."))))
            'nil))))))))