• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
        • Defgrammar
        • Tree-utilities
        • Notation
          • Syntax-abstraction
          • Semantics
          • Abstract-syntax
            • Convenience-constructors
            • Num-val
            • Char-val
            • Repeat-range
              • Repeat-range-fix
              • Repeat-range-equiv
              • Make-repeat-range
                • Repeat-rangep
                • Repeat-range->min
                • Repeat-range->max
                • Change-repeat-range
              • Rulename
              • Rule
              • Rulename-option
              • Num-base
              • Rule-option
              • Prose-val
              • Rulelist
              • Char-val-set
              • Rulename-set
              • Rulename-list
              • Grammar
              • Alt/conc/rep/elem
            • Core-rules
            • Concrete-syntax
          • Grammar-parser
          • Meta-circular-validation
          • Parsing-primitives-defresult
          • Parsing-primitives-seq
          • Operations
          • Examples
          • Differences-with-paper
          • Constructor-utilities
          • Grammar-printer
          • Parsing-tools
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Repeat-range

    Make-repeat-range

    Basic constructor macro for repeat-range structures.

    Syntax
    (make-repeat-range [:min <min>] 
                       [:max <max>]) 
    

    This is the usual way to construct repeat-range structures. It simply conses together a structure with the specified fields.

    This macro generates a new repeat-range structure from scratch. See also change-repeat-range, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-repeat-range

    (defmacro make-repeat-range (&rest args)
      (std::make-aggregate 'repeat-range
                           args '((:min) (:max))
                           'make-repeat-range
                           nil))

    Function: repeat-range

    (defun repeat-range (min max)
      (declare (xargs :guard (and (natp min) (natip max))))
      (declare (xargs :guard t))
      (let ((__function__ 'repeat-range))
        (declare (ignorable __function__))
        (b* ((min (mbe :logic (nfix min) :exec min))
             (max (mbe :logic (acl2::nati-fix max)
                       :exec max)))
          (cons :repeat (list min max)))))