private void ThrowError(string message, int index) { var ex = new ParserException(message, GetLine(index), GetColumn(index), index); throw ex; }