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