• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
        • Defgrammar
        • Tree-utilities
        • Notation
        • Grammar-parser
        • Meta-circular-validation
          • *concrete-syntax-rules-parsed-and-abstracted*
          • *core-rules-parsed-and-abstracted*
          • *concrete-syntax-rules-parsed*
            • *core-rules-parsed*
          • Parsing-primitives-defresult
          • Parsing-primitives-seq
          • Operations
          • Examples
          • Differences-with-paper
          • Constructor-utilities
          • Grammar-printer
          • Parsing-tools
        • Vwsim
        • Isar
        • Pfcs
        • Wp-gen
        • Dimacs-reader
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Riscv
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Meta-circular-validation

    *concrete-syntax-rules-parsed*

    Parse tree of the text that contains the concrete syntax rules of ABNF.

    The file concrete-syntax-rules.abnf contains the definition of the concrete syntax of ABNF using the concrete syntax of ABNF itself, copied and pasted from [RFC]. Calling parse-grammar-from-file on that file yields a parse tree. This shows that the executable grammar parser parses the definition of the concrete syntax of ABNF without errors.

    We use add-const-to-untranslate-preprocess to keep this constant unexpanded in output.

    Definitions and Theorems

    Function: untranslate-preprocess-*concrete-syntax-rules-parsed*

    (defun untranslate-preprocess-*concrete-syntax-rules-parsed*
           (acl2::term acl2::wrld)
      (if (equal acl2::term
                 (list 'quote
                       *concrete-syntax-rules-parsed*))
          '*concrete-syntax-rules-parsed*
        (untranslate-preprocess-*core-rules-parsed*
             acl2::term acl2::wrld)))

    Theorem: treep-of-*concrete-syntax-rules-parsed*

    (defthm treep-of-*concrete-syntax-rules-parsed*
      (treep *concrete-syntax-rules-parsed*))