• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
          • Atj
          • Aij
          • Language
            • Syntax
              • Grammar
              • Unicode-escapes
              • Unicode-input-char
              • Escape-sequence
              • Identifiers
              • Primitive-types
              • Reference-types
              • Keywords
              • Unicode-characters
              • Integer-literals
              • String-literals
                • Unicode-stringlit-char
                • String-literal-char
                • String-literal
                  • String-literal-fix
                  • String-literal-equiv
                  • String-literalp
                • Unicode-stringlit-char-fix
                • Unicode-stringlit-char-p
              • Octal-digits
              • Hexadecimal-digits
              • Decimal-digits
              • Binary-digits
              • Character-literals
              • Null-literal
              • Floating-point-literals
              • Boolean-literals
              • Package-names
              • Literals
            • Semantics
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Lists-light
        • Axe
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • String-literals

String-literal

Fixtype of string literals.

According to the grammar rule for string-literal [JLS14:3.10.5], a string literal consists of zero or more string-characters (which we formalize via string-literal-char) between double quotes. Abstractly, but without losing any information, we leave the surrounding double quotes implicit, and define string literals as lists.

The set of values of this fixtype should be isomorphic to the set of strings (or parse trees) defined by the Java grammar rule string-literal. This remains to be proved formally.

Subtopics

String-literal-fix
(string-literal-fix x) is a usual ACL2::fty list fixing function.
String-literal-equiv
Basic equivalence relation for string-literal structures.
String-literalp
(string-literalp x) recognizes lists where every element satisfies string-literal-char-p.