report line number and current token when syntax error was encountered