• 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
          • Atj
          • Aij
          • Language
            • Syntax
              • Grammar
              • Unicode-escapes
              • Unicode-input-char
              • Escape-sequence
              • Identifiers
              • Primitive-types
              • Reference-types
              • Unicode-characters
              • Keywords
                • Keywords-grammar-validation
                  • Reserved-keywordp-when-grammar-reserved-keywordp
                  • Contextual-keywordp-when-grammar-contextual-keywordp
                  • Reserved-keyword-tree
                  • Contextual-keyword-tree
                  • Grammar-reserved-keywordp
                  • Grammar-contextual-keywordp
                  • Grammar-contextual-keywordp-when-contextual-keywordp
                  • Grammar-reserved-keywordp-when-reserved-keywordp
                  • Reserved-keywordp-is-grammar-reserved-keywordp
                  • Contextual-keywordp-is-grammar-contextual-keywordp
                • Reserved-keywordp
                • Contextual-keywordp
                • *reserved-keywords*
                • *contextual-keywords*
              • 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
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
        • 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
  • Keywords

Keywords-grammar-validation

Validation of the definition of reserved-keywordp and contextual-keywordp with respect to the ABNF grammar of Java.

The predicates reserved-keywordp and contextual-keywordp define reserved and contextual keywords `directly', i.e. without reference to the grammar. Here we introduce alternative predicates based on the grammar, and we show the equivalent to reserved-keywordp and contextual-keywordp.

Subtopics

Reserved-keywordp-when-grammar-reserved-keywordp
Proof of reserved-keywordp from grammar-reserved-keywordp.
Contextual-keywordp-when-grammar-contextual-keywordp
Proof of contextual-keywordp from grammar-contextual-keywordp.
Reserved-keyword-tree
Tree for a reserved keyword.
Contextual-keyword-tree
Tree for a contextual keyword.
Grammar-reserved-keywordp
Definition of reserved keywords based on the grammar.
Grammar-contextual-keywordp
Definition of contextual keywords based on the grammar.
Grammar-contextual-keywordp-when-contextual-keywordp
Proof of grammar-contextual-keywordp from contextual-keywordp.
Grammar-reserved-keywordp-when-reserved-keywordp
Proof of grammar-reserved-keywordp from reserved-keywordp.
Reserved-keywordp-is-grammar-reserved-keywordp
Equivalence of reserved-keywordp and grammar-reserved-keywordp.
Contextual-keywordp-is-grammar-contextual-keywordp
Equivalence of contextual-keywordp and grammar-contextual-keywordp.