added lexical analysis error checking