Validation of the definition of oct-digitp with respect to the ABNF grammar of Java.
The predicate oct-digitp defines octal 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 oct-digitp.