• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
      • Io
      • Defttag
      • Sys-call
      • Save-exec
      • Quicklisp
      • Std/io
      • Oslib
      • Bridge
      • Clex
        • Example-lexer
          • Token-p
            • Token
            • Make-token
            • Change-token
            • Make-honsed-token
            • Honsed-token
              • Token->type
              • Token->text
            • Lex-punctuation
            • Lex-id/keyword
            • Lex-string
            • Lex-whitespace
            • Lex-comment
            • Lex1
            • Lex-main
            • Lex*
            • Tokenlist-p
            • Letter-char-p
            • Idtail-char-p
            • Whitespace-char-p
            • Number-char-p
            • Tokentype-p
            • Lex*-exec
            • Newline-string
          • Sin
          • Matching-functions
          • Def-sin-progress
        • Tshell
        • Unsound-eval
        • Hacker
        • ACL2s-interface
        • Startup-banner
        • Command-line
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Token-p

    Honsed-token

    Raw constructor for honsed token-p structures.

    Syntax:

    (honsed-token type text)

    This is identical to token, except that we hons the structure we are creating.

    Definition

    This is an ordinary honsing constructor introduced by defaggregate.

    Function: honsed-token

    (defun honsed-token (type text)
      (declare (xargs :guard (and (tokentype-p type)
                                  (stringp text))))
      (mbe :logic (token type text)
           :exec (hons type text)))