For second order errors where more than one symbol is possible, the syntax processor scans forward to find a recovery symbol for that error. For example a bad comparison operator has any variable or statement terminator as its recovery symbols. They provide an algorithm for generating recovery symbol sets from the syntax diagram.