Bug fix: intermediate regular expressions don't appear in the final grammar.