added lexeme parameter in token version of writeSyntaxError()