• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • 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
              • Keywords-grammar-validation
              • Jkeywordp
              • Restricted-jkeywordp
              • *jkeywords*
              • *restricted-jkeywords*
            • 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
          • 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
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Syntax

Keywords

The Java keywords [JLS14:3.9].

Some character sequences are Java keywords in all contexts, namely the ones listed in the grammar production in [JLS14:3.9]. Other character sequences are Java keywords only in certain module-related contexts, as described in [JLS14:3.9] in prose (i.e. without grammar productions); these are called `restricted keywords'.

To avoid conflict or confusion with ACL2 keywords, we prefix keyword with j in ACL2 function and constant names that pertain to Java keywords.

Subtopics

Keywords-grammar-validation
Validation of the definition of jkeywordp with respect to the ABNF grammar of Java.
Jkeywordp
Recognize (non-restricted) Java keywords.
Restricted-jkeywordp
Recognize restricted Java keywords.
*jkeywords*
The (non-restricted) Java keywords, as ACL2 strings.
*restricted-jkeywords*
The restricted Java keywords, as ACL2 strings.