Added function to get first from sequence of grammar symbols