• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • 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
      • Riscv
      • Taspi
      • Bitcoin
      • 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
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
              • Compilation
              • Static-semantics
              • Concrete-syntax
                • Pretty-printer
                • Grammar
                • Lexing-and-parsing
                • Input-pretty-printer
                • Output-pretty-printer
                • Unicode-characters
                  • Unicode-list->codepoint-list
                  • Unicode
                    • Unicode-fix
                    • Unicode-equiv
                    • Make-unicode
                      • Unicode->codepoint
                      • Change-unicode
                      • Unicodep
                    • Unicode-list
                  • Concrete-syntax-trees
                  • Symbols
                  • Keywords
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Unicode

    Make-unicode

    Basic constructor macro for unicode structures.

    Syntax
    (make-unicode [:codepoint <codepoint>]) 
    

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

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

    Definition

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

    Macro: make-unicode

    (defmacro make-unicode (&rest args)
      (std::make-aggregate 'unicode
                           args '((:codepoint))
                           'make-unicode
                           nil))

    Function: unicode

    (defun unicode (codepoint)
     (declare (xargs :guard (natp codepoint)))
     (declare (xargs :guard (<= codepoint 1114111)))
     (let ((__function__ 'unicode))
      (declare (ignorable __function__))
      (b* ((codepoint (mbe :logic (nfix codepoint)
                           :exec codepoint)))
        (let
         ((codepoint (mbe :logic (if (<= codepoint 1114111) codepoint 0)
                          :exec codepoint)))
         (cons :unicode (list (cons 'codepoint codepoint)))))))