grammar patternIterator