• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • 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
            • Octal-digits
            • Hexadecimal-digits
            • Decimal-digits
            • Binary-digits
            • Character-literals
            • Null-literal
            • Floating-point-literals
            • Boolean-literals
            • Package-names
            • Literals
              • Literal
                • Literal-case
                • Literal-fix
                • Literal-equiv
                • Literalp
                • Literal-string
                • Literal-integer
                • Literal-fpoint
                • Literal-char
                • Literal-boolean
                • Literal-kind
                • Literal-null
          • Semantics
      • Taspi
      • Riscv
      • 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
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Literals

Literal

Fixtype of literals.

This is a tagged union type, introduced by fty::deftagsum.

Member Tags → Types
:integer → literal-integer
:fpoint → literal-fpoint
:char → literal-char
:string → literal-string
:boolean → literal-boolean
:null → literal-null

This corresponds to the grammar rule for literal [JLS14:3.10].

Note that we just use the built-in ACL2 booleans for the boolean literals, since they are so simple.

Subtopics

Literal-case
Case macro for the different kinds of literal structures.
Literal-fix
Fixing function for literal structures.
Literal-equiv
Basic equivalence relation for literal structures.
Literalp
Recognizer for literal structures.
Literal-string
Literal-integer
Literal-fpoint
Literal-char
Literal-boolean
Literal-kind
Get the kind (tag) of a literal structure.
Literal-null