What does it mean to put a regular expression within a BNF production?
It is possible to embed a regular expression within a BNF production. For example //A regular expression production TOKEN : { < ABC : "abc" > } //A BNF production void nonterm() : {} { “abc” “def” < (["0"-"9"])+ > “abc” “def” < (["0"-"9"])+ > } There are six regular expressions within the BNF production. The first is simply a Java string and is the same string that appears in the earlier regular expression production. The second is simply a Java string, but does not (we will assume) appear in a regular expression production. The third is a “complex regular”expression. The next three simply duplicate the first three.