Validation of the definition of boolean-literalp with respect to the ABNF grammar of Java.
The predicate boolean-literalp defines boolean literals `directly', i.e. without reference to the grammar. Here we introduce an alternative predicate based on the grammar, and we show it equivalent to boolean-literalp.