• 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

    Make-honsed-token

    Constructor macro for honsed token-p structures.

    Syntax:

    (make-honsed-token [:type <type>] 
                       [:text <text>]) 
    

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

    Definition

    This is an ordinary honsing make- macro introduced by defaggregate.

    Macro: make-honsed-token

    (defmacro make-honsed-token (&rest args)
      (std::make-aggregate 'token
                           args '((:type) (:text))
                           'make-honsed-token
                           t))