Transitional grammar for pattern matches.