• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
          • Parser-output-to-values
            • Parsed-to-value
          • Values
          • Syntax
          • Patbind-pattern
          • Operations
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Axe
        • Lists-light
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Json

Parser-output-to-values

A translator from the JSON parser's output to our model of JSON values.

The JSON parser in kestrel/json-parser/ produces output that is slightly different from the the JSON values formalized in this JSON library; in particular, the parser's output is not a fixtype.

Thus, here we provide a translator from the parser's output to the JSON values. Since at the time that this translator was first written the parser did not include a type (i.e. recognizer) for its output, the translator is defined over all possible ACL2 values, but it returns an error if given something that does not belong to the parser's implicit output type. After that, recognizers have been added in kestrel/json-parser/, so we plan to improve this translator to take them into account.

Subtopics

Parsed-to-value
Translate the JSON values generated by the parser to the corresponding fixtype JSON values.